gin-starter

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2021 License: Apache-2.0

README

gin-starter

Based on this template, we can build our application faster.

  • Based on Gin web framework
  • Simple CRUD application
  • Use route-service-dao three layers
  • Provide database migration
  • Provide model validation and i18n error code translate
  • Provide bussiness error codes for our application domain

How to run

local build and run
  1. install postgres and golang in your computer

  2.  make local-build
     make local-run
    
docker build and run

todo...

Contribution

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

Roadmap

  1. Implement auth middleware
  2. business error codes should design better
  3. add more script in makefile to build and run, like docker, docker-compose
  4. add unit test
  5. add CI/CD
  6. separate util package to different package to make more good design

Directories

Path Synopsis
cmd
pkg
dao

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL