Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kennychenfight/gin-starter
Based on Gin web framework, create starter template to help us to build our application faster
https://github.com/kennychenfight/gin-starter
gin gin-gonic go template
Last synced: 3 months ago
JSON representation
Based on Gin web framework, create starter template to help us to build our application faster
- Host: GitHub
- URL: https://github.com/kennychenfight/gin-starter
- Owner: KennyChenFight
- License: apache-2.0
- Created: 2021-03-07T08:09:37.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-09T03:03:26.000Z (over 3 years ago)
- Last Synced: 2024-10-15T17:24:45.533Z (3 months ago)
- Topics: gin, gin-gonic, go, template
- Language: Go
- Homepage:
- Size: 8.13 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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. ```bash
make local-build
make local-run
```### how to build,test,codegen,run
1. build
```bash
./dockerbuild.sh
```
2. test
```bash
./dockerbuild.sh test
```
3. codegen
```bash
./dockerbuild.sh codegen
```4. run
```bash
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