This is project structure golang gin/gorm framework restfull api. 🔥 🔥 🔥.
Gallery
Gin is a web framework written in Go (Golang). It features a martini-like API with performance that is up to 40 times faster thanks to gin-gonic. If you need performance and good productivity, you will love Gin.
The fantastic ORM library for Golang aims to be developer friendly. docs at gorm
PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. docs at postgresql
├── src
│ ├──controllers // controller
│ └── v1.go
│ ├──databases
│ └── models.go // model, get data from database
│ └── db_connect.go // model, get data from database
│ ├──helpers
│ └── time.go // utils handle time
│ ├──routes
│ └── v1.go // router for v1 api config
│ ├──securities
│ └──auth.go // token handle
│ ├──settings
│ └──config.go // config and environment
│ ├──template // html template and more
│ ├──go.mod // go module
│ ├──go.sum // go module
├── docker-compose.yaml // container with compose
└── Dockerfile // dockerfile
git clone https://github.com/apot-group/golang-skeleton.git
docker-compose up --build
http://localhost:8080/api/docs#/
Email-1: duynguyenngoc@hotmail.com - Duy Nguyen
Email-2: ngocnghia128@gmail.com - Nghia Nguyen
Instagram-1: @duy.nguyen.ngoc ❤️ ❤️ ❤️