Git Product home page Git Product logo

learnmongodb's Introduction

LearMongoDB with Docker

The purpose of this project is to test your MongoDB query skills against sample data sets

Setup

  1. You need to have Docker installed on your computer. For example Docker desktop for Windows is easy to install and use.
  2. 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

Excercices

Once the container pulled, you can now practice your skills with these excercices

Maintenance

Git

To init the Git repository

git init
git remote add origin https://github.com/deppierre/learnmongodb.git
git checkout master
git branch --set-upstream-to=origin/master

To push

To save credentials: git config --global credential.helper store
To push new changes: git add . && git commit -am 'push' && git push origin master

Docker

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

MongoDB

Sample dataset are available here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.