GoGen is a scaffolding tool for go based services
git clone https://github.com/praveenpenumaka/gogen
cd gogen
make install
- Go to the directory where you want to create the project
cd $GOPATH/src/github.com/praveenpenumaka/
- Create a new project
gogen new testproject
This will create a project folder with project manifest file
- change to project directory
cd testproject
- Generate project folders/files
gogen generate
- Go modules fetch
make once
gogen generate crud Product
make migrate
make run-api
Configsend basepath as argument
AppContextRouterCRUD- Generic routes
MakefileModels- gorm types for models
ControllersMainCommand line- Authentication
- Basic authentication
LoginAuth middleware- register
- Phone OTP authentication
- Slack authentication
- Google authentication
- Facebook authentication
- Basic authentication
- Swagger docs
- FileUpload
- Static file server
- Logging
- Metric tracer
- Cache
- Worker
- EventHandler
- Readme file
- Dockerfile