mongodb-go-driver-examples

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2024 License: MIT

README

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/

Directories

Path Synopsis
cmd
cli
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL