-
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
- Use your oauth secrets by registering here
- Run the app
- npm start
- Visit the url as mentioned in the terminal, usually http://localhost:3000