Skip to content

Web Portal for Thomso'18 (Annual Cultural Fest of IIT Roorkee)

Notifications You must be signed in to change notification settings

pv-912/Thomso-18

Repository files navigation

Thomso'18

db.createRole({ createRole: <Role Name>, privileges: [ {
  resource: { db: <Databae Name>, collection: "" },
  actions: [ "find","insert","update","createIndex","createCollection","remove" ]}
], roles: [{ role: "read", db: <Databae Name>}] })
  • Create User
- db.createUser({"user" : <User name>,pwd: <Password>, "roles" : [{"role" : <Role Name Created>, "db" : <Databae Name>}]})
  • Make a new file named .env and copy the text from .env.sample to it. Fill the credentials of the database.

  • Run Following Commands

-  Run npm install
-  Run npm start
-  Run npm run serve(for http) or npm run https(for https)