A clean, modular starter REST API built with Gin (Go) β designed to showcase backend development skills.
/ ββ db/ β database setup & connections
ββ middlewares/ β request logging, auth, CORS, etc.
ββ models/ β data models + DB logic
ββ routes/ β route definitions by resource
ββ utils/ β helpers (error responses, validation)
ββ main.go β entrypoint: sets up Gin, middleware, routes
ββ go.mod β Go module info
- Clone & Install Dependencies
git clone https://github.com/mohammedf99/gin-api.git cd gin-api go mod tidy - Configure Database
Set your DB credentials (PostgreSQL/MySQL) in db/.
- Run the Server
go run main.go