We aim to automate feature creation, making it faster and easier. Our approach leverages the MVC architecture with the Echo framework, Gorm, and other tools.
Our goal is to enable the creation of CRUD features in less than one minute. Additionally, a Dockerfile
and a .gitignore
file will also be generated.
go get -u github.com/Findryankp/mvcGo@latest
- First step, add this syntax to your
main function
inmain.go
file
mvcGo.Init()
- for example :
- Run this syntax in cmd/terminal
go run . init
- If successful, the following files will be generated:
- Database configuration files
- Middleware files (including JWT authentication, logging, and CORS)
- User authentication files (for login and registration)
- Environment files (.env) and Dockerfile
- And more
- Set
.env
with your own configuration database
- run this syntax in your cmd/terminal
go run . -ft FeaturesNames
- ex :
go run . -ft Rooms
- CRUD controller, model, route, and migratiton feature from your FeatureNames will be generated based from
model.txt
- run this syntax in your cmd/terminal
go run . -f FeaturesNames
- ex :
go run . -f Rooms
- CRUD controller, model, route, and migratiton feature from your FeatureNames will be created
go run .
- Try it with your postman or another