The purpose of this project is to test your MongoDB query skills against sample data sets
- You need to have Docker installed on your computer. For example Docker desktop for Windows is easy to install and use.
- You can safely pull the learnmongodb image and start an instance of this image (aka Docker container)
#to pull and run the Docker image from the repository
docker run --name learnmongodb -d deppierre/learnmongodb
#to connect to the container and the mongod
docker exec -ti learnmongodb mongo
Once the container pulled, you can now practice your skills with these excercices
git init
git remote add origin https://github.com/deppierre/learnmongodb.git
git checkout master
git branch --set-upstream-to=origin/master
To save credentials: git config --global credential.helper store
To push new changes: git add . && git commit -am 'push' && git push origin master
To rebuild the image: docker build -t learnmongodb .
To push it to Dockerhub: docker push deppierre/learnmongodb
To run the container in background: docker run --name learnmongodb -d --rm deppierre/learnmongodb
To connect to mongo: docker exec -ti learnmongodb mongo
Sample dataset are available here