To get started, make sure you have Docker installed on your system, and then clone this repository.
Next, navigate in your terminal to the directory you cloned this, and spin up the containers for the web server by running
docker-compose up -d --build
.
- Go -
:4000
- Mongo -
:27017
- Mongo-Express -
:8081
Access The Mongo Express
http://localhost:8081
All the Go files should be placed inside the src folder.
All the database data storage are mapped to you local folder mongo_storage
var conStr string = "mongodb://<user-name>:<password>@localhost:27017"
clientOptions := options.Client().ApplyURI(conStr)
docker ps
docker exec -it <container ID> /bin/sh