Skip to content

🐹 A simple dockerized API starter for Golang.

License

Notifications You must be signed in to change notification settings

checkaayush/amigo

Repository files navigation

amigo

Introduction

A simple dockerized API starter for Golang inspired by GORSK.

Shout-out to ribice for the awesome work on GORSK v2. 👍

What's different from GORSK?

  • Uses docker and docker compose
  • Has live code reloading for faster development
  • Uses Go modules with Go 1.12+ and semantic versioning
  • Uses Labstack Echo v4
  • Uses MongoDB as the primary datastore along with the official MongoDB Go driver
  • Uses environment variables for configuration
  • Minor changes in repository structure

Development

Pre-requisites: Install latest stable versions of Docker and Docker Compose.

  1. Clone the repository locally.
  2. Add .env file in the repository root by modifying the .env.template file as needed.
  3. From repository root, run:
docker-compose up
  1. API will be up and running at http://localhost:5000.

Dependency Management

Amigo uses Go modules with semantic versioning and is tested with Go 1.12+.

  • Update all direct and indirect dependencies using go get -u.
  • Remove unused dependencies using go mod tidy.
  • Add a new dependency using go get <path-to-dependency>.

Dependencies

References