Application created using a MERN stack.
- MongoDB database
- Node (express, mongoose, bcrypt, validator) server API
- Install mongoDB (installation guide)
- Install Node (Node Downloads)
- Clone down the repository:
git clone https://github.com/Monika-Mistry/Node-Assessment.git - Go to root of project and run the following two commands:
npm install
npm install -g nodemon
- Run the application:
nodemon ./server.js
- Clone down the repository:
git clone https://github.com/Monika-Mistry/Node-Assessment.git - Install docker-compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- Build new images for the services:
docker-compose build - Running the application:
docker-compose up -d - Tearing down the application:
docker-compose down --rmi all