This is a template for a Golang REST API for future projects. Uses MongoDB Atlas as database provider.
- Clone the repository
- Create a mongo db cluster on MongoDB Atlas
- Create a .env file in the root directory and add the following variables:
MONGOURI=mongodb+srv://user:<password>@cluster0.kgqggff.mongodb.net/?retryWrites=true&w=majority
- Run docker compose -f docker-compose-dev.yaml up for development.
- Run docker compose -f docker-compose.yaml up for production.