Skip to content
/ gin-starter Public template

Based on Gin web framework, create starter template to help us to build our application faster

License

Notifications You must be signed in to change notification settings

KennyChenFight/gin-starter

Repository files navigation

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

About

Based on Gin web framework, create starter template to help us to build our application faster

Topics

Resources

License

Stars

Watchers

Forks

Packages