Overview
microgen is a CLI
tool to help create micro services or just a rest api in go. It uses an opiniated structure that tries to implement clean architecture.
Dependencies
In order to properlly work with the generated code, you will need to install some dependencies. Follow the links to get installation instructions.
Installation
Run go get -u github.com/glean-go/microgen
Then you can restart your terminal and start using it.
Usage
To create a new project go to the directory where you want to save it and run:
microgen new project --name "my awesome project" --module path/to/your/repository
After that a new folder will be generated on your current location. Navigate into it, and run go run main.go
and that will start the server, you can check it at http://localhost:8080/v1/docs