https://github.com/frani/go-gin-api
🐭 Boilerplate of Go Gin API or that's what I tried.
https://github.com/frani/go-gin-api
api gin-gonic go golang
Last synced: 3 months ago
JSON representation
🐭 Boilerplate of Go Gin API or that's what I tried.
- Host: GitHub
- URL: https://github.com/frani/go-gin-api
- Owner: frani
- License: mit
- Created: 2024-03-19T21:39:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T13:22:45.000Z (over 2 years ago)
- Last Synced: 2025-03-06T06:33:29.000Z (over 1 year ago)
- Topics: api, gin-gonic, go, golang
- Language: Go
- Homepage:
- Size: 7.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go GIN API with Mongo
Boilerplate microservice API with GIN
# Folder structure
| Folder & Files | Description |
| --------------------------------- | ------------------------------------------------------------------------------------- |
| /src/routers | AKA endpoints |
| /src/routers/users | router folder example |
| /src/routers/users/handler.go | Handler functions |
| /src/routers/users/router.go | Router |
| /src/routers/users/validations.go | Endpoint Request Validations |
| /src/middlewares | Custom Middlewares |
| /src/services | Business logic, including internal or external services such as SDK (service layer) |
| /src/configs | Environment variables and configuration-related things |