Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 2.09 KB

README.md

File metadata and controls

60 lines (40 loc) · 2.09 KB

Lumen CLI

Go Report Card Go Report Card latest release

Lumen is a CLI that allows you tou generate API with lumen-api framework, generating models, controllers, router and store.

Prerequisites

Define export PATH=$PATH:$GOPATH/bin

Installing

go get -u github.com/go-lumen/lumen

cd $GOPATH/src/github.com/go-lumen/lumen

go install

Usage

  • To generate the project directory, just run lumen new with your namespace, for example lumen new github.com/user/project
  • Generate a first model with lumen model

Auto mode

  • Select entities for each selected model and generate controller, store and router with lumen generate

Manual mode

  • Then, generate the corresponding controller with lumen controller
  • Then, generate the corresponding store with lumen store
  • Finally, generate the router with lumen router

Built With

  • cobra - A Commander for modern Go CLI interactions.
  • ishell - Library for creating interactive cli applications.
  • lumen-api - The boilerplate for GoLang api development

License

This project is licensed under the MIT License - see the LICENSE.md file for details

  • Adrien Chapelet - Initial work - IoThings