mongodb-go

module
v0.0.0-...-7cba121 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT

README

mongodb-go

⚠ This is a repository created to learn a specific technology, it does NOT follow the best practices for a production environment: Be very careful here!

Using MongoDB

In this project we'll use docker-compose to host our MongoDB instance. So make sure you have docker and docker-compose installed in your machine, and modify the docker-compose.yml file to fix the MongoDB data directory in the volumes section. To get the database up and running just run the below code in your terminal.

cd mongodb-go && mkdir database 
docker-compose up -d

This tasker app was initially created based on this article from Digital Ocean: How To Use Go with MongoDB Using the MongoDB Go Driver

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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