A simple dockerized API starter for Golang inspired by GORSK.
Shout-out to ribice for the awesome work on GORSK v2. 👍
- 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
Pre-requisites: Install latest stable versions of Docker and Docker Compose.
- Clone the repository locally.
- Add .env file in the repository root by modifying the .env.template file as needed.
- From repository root, run:
docker-compose up
- API will be up and running at http://localhost:5000.
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>
.
- echo - Web framework
- envconfig - Configuration management
- realize - Live reloading
- mongo-go-driver - MongoDB driver
- testify - Assertions library