Skip to content

Lumen is a CLI that helps you generating API code for lumen-api

License

Notifications You must be signed in to change notification settings

go-lumen/lumen-cli

Repository files navigation

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

About

Lumen is a CLI that helps you generating API code for lumen-api

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Languages