Gonrails 是基于 Gin 改造的后端 MVC 开发框架
- QQ 群: 594171535
- 接头暗号: Heil Hydra
1. Install
go get -u github.com/gonrails/gonrails
2. New
gonrails new yourproject-name
- so if I want to create a project named kalista , I just run command
gonrails new kalista
- the docs of the created project was in here
3. Generate
3.1 Controller
The command is gonrails generate controller yourcontroller action list
eg:
gonrails generate controller users index update show
gonrails generate controller admin/users index update show