Node + Mongo APIs to get, add, delete and update user database. Admin authentication is managed by JSON Web Tokens.
Table of Contents
This is the backend code for a Node + Mongo backend with APIs to get, add, delete and update user database. Update, add and delete feature requires Admin authorisation which is managed by JSON Web Tokens.
To get a local copy up and running follow these simple example steps.
- npm
-
Clone the repo
-
Install NPM packages
npm install
-
Ceate a
.env
file and enter following values in itPORT = 'ENTER YOUR PREFERRED POST HERE' MONGO_DB_URI = 'YOUR MONGO DB URI' TOKEN_KEY = 'A STRING FOR ENCODING JSON WEB TOEKNS'
-
Start the server
node index.js
The server will listen on PORT
5000
.
The Documentation for the APIs can be found in ./apidoc/index.html
Feel free to use and modify it any way you want.