Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zuoyanart/pizzacmsapi
golang restful power by iris
https://github.com/zuoyanart/pizzacmsapi
Last synced: about 5 hours ago
JSON representation
golang restful power by iris
- Host: GitHub
- URL: https://github.com/zuoyanart/pizzacmsapi
- Owner: zuoyanart
- Created: 2016-03-07T04:57:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T22:31:29.000Z (about 5 years ago)
- Last Synced: 2024-06-20T12:51:22.936Z (5 months ago)
- Language: Go
- Homepage:
- Size: 19.9 MB
- Stars: 37
- Watchers: 4
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## restful 框架
这是一个根据neo的restful框架编写的一个restful流程部署应用框架,包含:> 1. api文档生成,使用基于nodejs的apidoc,配置文件apidoc.json
> 2. restful 路由采用框架 [neo](https://github.com/ivpusic/neo "neo"),当然使用[gin](https://github.com/gin-gonic/gin "gin")也是可以的,并且很容易做切换
> 3. 数据验证:[https://github.com/go-playground/validator](https://github.com/go-playground/validator "validator")
> 4. 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.发布
```js
godep go run
```or
```
godep go build
```