rajgohil07 / Aggregation-MongoDB-Mongoose-MVC-nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aggregation-MongoDB-Mongoose-MVC-nodejs

Tech=>Node.js
Database=>Mongodb
ODM-library=>Mongooes
Database_backup=>src/db_backup

Additional infomation

Designed a Project to get an idea regarding aggregation pipeline method in mongoose in nodejs with REST API using Eslint and airbnb base Along with Joi backend validator followed by MVC structure with separate files for controller and route which furnishes knowledge about the advanced query to retrieve data from database

Aggregate methods:
https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/#alphabetical-listing-of-stages

Operator information:
https://docs.mongodb.com/manual/reference/operator/aggregation/

JWT:
https://www.npmjs.com/package/jsonwebtoken

Reuired modules

express @4.17.1
mongoose @5.13.2
jsonwebtoken @8.5.1
Joi @17.4.1
dotenv @10.0.0
eslint @7.31.0
eslint-config-airbnb-base @14.2.1
eslint-plugin-import @2.23.4

How to Start

Open the directory and install all the required modules by typing the following command
npm i

After module installation just simply typewrite the following code to start the node server
npm start

To Generate your token go to the browser/postman and paste the below link to generate the Token
127.0.0.1:8081/generateToken

How to install Postman

Link:https://www.postman.com/downloads/

About


Languages

Language:JavaScript 99.3%Language:Shell 0.7%