Template Go Github Repository
A repository to use as a template for Go repositories.
Requirements
Tool |
Description |
Docker |
This is used to launch the MongoDB container |
mongosh |
The MongoDB Shell |
MongoDB for VS Code |
This is used to create a playground for MongoDB |
Run Docker MongoDB Container
docker-compose up -d
docker ps
docker volume ls
Connect with Mongosh
mongosh admin -u root -p rootpassword
Shutdown the Docker Container
# Shutdown without deleting all containers
docker-compose stop
# Shutdown with deleting all containers
docker-compose down
VSCode MongoDb Extension
Please see the VSCode MongoDB extension
documentation
Connection String
mongodb://root:rootpassword@127.0.0.1/