Golang Gin Starter & Boilerplate π
A robust and scalable starter template for building backend applications using Golang and the Gin framework, designed with clean architecture principles.
π οΈ Tech Stack
- βοΈ Golang: v1.23 β Efficient, statically typed, compiled language.
- ποΈ PostgreSQL: PostgreSQL β Reliable and powerful SQL database.
π Framework & Libraries
- π Gin: Gin β Fast and flexible HTTP web framework.
- π Pgx: Pgx β High-performance Postgres driver.
- βοΈ Viper: Viper β Powerful configuration management.
- ποΈ Golang Migrate: Golang Migrate β Database migrations made easy.
- π Zerolog: Zerolog β Blazing fast, structured logging.
- π Air: Air β Live reload for Go apps.
π Getting Started
1οΈβ£ Clone the Repository
Clone the repository using the command below:
git clone https://github.com/JordanMarcelino/go-gin-starter
Or you can also use this repository as template
2οΈβ£ Move into the Directory
Navigate to the project directory:
cd go-gin-starter
3οΈβ£ Run the Local Server with Hot Reload
Use Air to start the development server with hot reload:
air
4οΈβ£ Build & Run the Docker Container
Deploy your application using Docker Compose:
docker compose up -d --build
Happy coding! π§βπ»π