Skip to content

Latest commit

 

History

History
executable file
·
23 lines (21 loc) · 801 Bytes

README.md

File metadata and controls

executable file
·
23 lines (21 loc) · 801 Bytes

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)