Skip to content

3 INSTALLATION, RUN

Sanket Saurav edited this page Dec 11, 2018 · 5 revisions

Installation

Server

  1. Clone https://github.com/karantyagi/movie-buddies-node-server
  2. Go to the cloned repository and run npm install
  3. Connect to mongodb sever running locally. (mongodb://127.0.0.1:27017)
  4. Run node server.js

Movie Buddies App

  1. Clone https://github.com/karantyagi/cs5200_fall2018_HKS
  2. Go to the cloned repository and run npm install
  3. Run ng serve --open

Database

Create Users

In mongo shell,

  1. Run use movie-buddies
  2. db.createCollection('User')
  3. db.User.insert({username:'admin',password:'admin',role:'Admin'})
  4. db.User.insert({username:'alice',password:'alice',role:'Guest'})
  5. db.User.insert({username:'bob',password:'bob',role:'Host'})
  6. db.User.insert({username:'charlie',password:'charlie',role:'Host', premiumRequestStatus: 'Verified'})
Clone this wiki locally