M101JS
Docker environment for course M101JS: MongoDB for Node.js Developers (https://university.mongodb.com/courses/M101JS/about)
Technology
- docker
- nodejs 8.3
- mongodb 3.5
Getting Started with Docker and Docker Compose for Local Development
Install Docker
https://docs.docker.com/installation/
Install Docker Compose
http://docs.docker.com/compose/install/
Install the app's
In the project ./book/dev/ (where the Makefile
file is located), run:
make build_all && make bootstrap_all
Getting started with mongo command line shell
make shell_mongoshell
then write:
mongo admin --host storage -u adminmaster -p passmaster
or
mongo storage:27017/admin -u adminmaster -p passmaster
or
mongo storage:27017/m101 -u usermaster -p passmaster
Getting started with weber from a shell
make shell_weber
then write:
node app.js
Connect to mongo contaner
docker exec -it m101js_storage_1 /bin/sh
Mongo restore dump
mongorestore --host storage -u adminmaster -p passmaster dump