pizzaCmsApi
pizzaCmsApi copied to clipboard
golang restful power by iris
restful 框架
这是一个根据neo的restful框架编写的一个restful流程部署应用框架,包含:
- api文档生成,使用基于nodejs的apidoc,配置文件apidoc.json
- restful 路由采用框架 neo,当然使用gin也是可以的,并且很容易做切换
- 数据验证:https://github.com/go-playground/validator
- orm使用gorm
文档目录结构
-- controller //控制器
-- logic //业务逻辑
-- model //数据模型
-- tools //工具类
--apidoc.json //api文档生成配置
--conf.toml //neo配置
--main.go
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build gopkg.in/alecthomas
包管理工具
本项目使用godep做包管理,依赖的包已经包含在项目中。参考命令 1.install godeo
go get github.com/tools/godep
2.编译和运行
godep go run main.go
3.发布
godep go run
or
godep go build