Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1011 Bytes

README.md

File metadata and controls

40 lines (32 loc) · 1011 Bytes

Authentication Portal Sample

Setup

  • Clone this repository

  • Install MongoDb

  • Create Role

db.createRole({ createRole: <Role Name>, privileges: [ {
  resource: { db: <Database Name>, collection: "" },
  actions: [ "find","insert","update","createIndex","createCollection","remove" ]}
], roles: [{ role: "read", db: <Database Name>}] })
  • Create User
- db.createUser({"user" : <User name>,pwd: <Password>, "roles" : [{"role" : <Role Name Created>, "db" : <Database Name>}]})
  • Install npm packages
- npm install
  • Make a .env file with the same fields as .env.sample
- cp .env.sample .env
  • Fill the .env file accordingly

For OAuth Credentials

  • Use your oauth secrets by registering here

Using the app

  • Run the app
- npm start