Lumen is a CLI that allows you tou generate API with lumen-api framework, generating models, controllers, router and store.
Define export PATH=$PATH:$GOPATH/bin
go get -u github.com/go-lumen/lumen
cd $GOPATH/src/github.com/go-lumen/lumen
go install
- To generate the project directory, just run
lumen new
with your namespace, for examplelumen new github.com/user/project
- Generate a first model with
lumen model
- Select entities for each selected model and generate controller, store and router with
lumen generate
- Then, generate the corresponding controller with
lumen controller
- Then, generate the corresponding store with
lumen store
- Finally, generate the router with
lumen router
- cobra - A Commander for modern Go CLI interactions.
- ishell - Library for creating interactive cli applications.
- lumen-api - The boilerplate for GoLang api development
This project is licensed under the MIT License - see the LICENSE.md file for details
- Adrien Chapelet - Initial work - IoThings