Based on this template, we can build our application faster.
- Based on Gin web framework
- Simple CRUD application
- Provide database migration
- Provide model validation and i18n error code translate
- Provide business error codes for our application domain
- Provide middleware handle global error and response
-
install postgres and golang in your computer
-
make local-build make local-run
- build
./dockerbuild.sh
- test
./dockerbuild.sh test
- codegen
./dockerbuild.sh codegen
- run
docker-compose up server
- provide your idea about this template in issue or raise PR request
- implement more useful middleware
- add unit test
- add CI/CD