Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.05 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.05 KB

Open in Codespaces

Set up

Make sure to follow the order when creating the containers! Note: bat files only work on windows]

Create a Docker network

Run docker network create --driver bridge final-assignment to create a docker network called final-assignment

Set up MongoDb

To create and run the mongo container, run ./rmongo.bat

Inspect MongoDB

To inspect the mongodb, run

  1. docker exec -it mongo-server /bin/bash on the terminal
  2. mongosh --username root --password password --authenticationDatabase admin
  3. use Tarpaulin

You should now be able to inspect the MongoDb collections

Set up Redis

To create and run the redis server, run ./rredis.bat

Start the Server

Install dependencies with npm install On the terminal, run npm start

Init the db

On a different terminal, run npm run initdb to initialize the db