Skip to content

mohammedf99/gin-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ‰ gin-api

A clean, modular starter REST API built with Gin (Go) β€” designed to showcase backend development skills.


πŸ“‚ Project Structure

/ β”œβ”€ 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


πŸš€ Quick Start

  1. Clone & Install Dependencies
    git clone https://github.com/mohammedf99/gin-api.git
    cd gin-api
    go mod tidy
    
  2. Configure Database

Set your DB credentials (PostgreSQL/MySQL) in db/.

  1. Run the Server

go run main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages