Skip to content
/ got Public template

Production-ready Go template with Docker, database migrations, testing, CI/CD, REST APIs, and CLI support.

License

Notifications You must be signed in to change notification settings

Gauravst/got

Repository files navigation

GOT - Go Template

Version License: MIT

A Production-Ready Go template to kickstart your next Go lang Project.

Table of Contents

Features

  • Database Support
  • ORM Support
  • Docker Integration
  • Makefile Commands
  • CLI Support
  • REST API Ready
  • Database Migrations
  • Environment Config
  • Modular Structure
  • Testing e2e/integration/unit Support

Setup

1. Clone the Repository in Your Project Directory

git clone https://github.com/gauravst/got.git .

2. Create .env file from .env.example

cp .env.example .env

3. Run Setup

make setup

Configuration

Edit the following files:

  • config/local.yaml – App configuration (port, host etc.)
  • .env – Secrets and environment variables

Dependencies

go mod download

Migrations

make migrate-up    # Apply migrations
make migrate-down  # Rollback migrations

Documentation

Contributing

Feel free to open issues and submit PRs. All contributions are welcome!

License

Licensed under the MIT License.

About

Production-ready Go template with Docker, database migrations, testing, CI/CD, REST APIs, and CLI support.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

  •