Skip to content

hvss007/thomso18copy

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published