Back to my work
Joel Amoako
Joel Amoako

REST API Starter Kit (Go)

Blazingly Fast RESTful API Starter in Go

REST API Starter is an opinionated boilerplate for building RESTful APIs in Go. It’s designed for small to medium scale projects where you want to skip the repetitive setup and jump straight into building business logic.

Why I Built It

Every new Go API project starts with the same ritual: pick a router, set up middleware, configure a database connection, add environment variable loading, choose a logger. This starter bundles all of that into a ready-to-go foundation so you can focus on what matters.

Stack

  • Chi is a lightweight, idiomatic HTTP router
  • GORM handles ORM for MySQL with migrations
  • Logrus provides structured logging
  • Viper manages configuration
  • godotenv loads environment variables

Features

  • Auto-reload during development via a shell script with entr
  • Production-ready Nginx configuration included
  • Simple make commands for building and running
  • Clean project structure following Go conventions

Getting Started

make
make build
./autoreload.sh