Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 853 Bytes

README.md

File metadata and controls

50 lines (38 loc) · 853 Bytes

gin-starter

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

How to run

local build and run

  1. install postgres and golang in your computer

  2.  make local-build
     make local-run

how to build,test,codegen,run

  1. build
./dockerbuild.sh
  1. test
./dockerbuild.sh test
  1. codegen
./dockerbuild.sh codegen
  1. run
docker-compose up server

Contribution

  • provide your idea about this template in issue or raise PR request

Roadmap

  1. implement more useful middleware
  2. add unit test
  3. add CI/CD