Skip to content

gauravr7/MERN-app

Repository files navigation

MERN STACK POC

Its a self learning project for MERN STACK

SERVER NPM:

  • "bcryptjs": "^2.4.3",
  • "body-parser": "^1.19.0",
  • "express": "^4.17.1",
  • "jsonwebtoken": "^8.5.1",
  • "mongoose": "^5.6.2",
  • "passport": "^0.4.0",
  • "passport-jwt": "^4.0.0",
  • "validator": "^11.0.0"
  • "nodemon": "^1.19.1"
  • "gravatar": "^1.8.0"

CLIENT NPM:

npm start to start the app http://localhost:3333/admin/viewall Superuser - superuser/gem123

Helpers

  • Install NPM package in a custom directory: npm install --prefix ./install/here <package>
  • HTML form Submit method only supports GET / POST rest methods can be used from AJAX.

Tech Stack

Mongo DB

  • CRUD Operations
  • Populate
  • Reference and embedded data

NPM Packages

  • express (Node framework)
  • mongoose (Mongo ODM Object data modelling)
  • pug (Jade HTML Templating)
  • body-parser
  • connect-flash
  • express-session
  • express-validator
  • express-messages
  • passport
  • passport-local
  • bcrypt

Admin Module

Route (/admin/)

  • Add New employee (/admin/add) - Done
  • Edit / Update employee (/admin/edit/:id) - Done
  • delete employee (/admin/delete/:id) - Done
  • See all employee (/admin/viewall) - Done
  • Search Particular employee (/admin/search) - Done

Employee Module

Route (/employee/)

  • See Profile
  • Edit Profile
  • Delete profile
  • Payroll

Login Module

Route (/users/)

  • Register employee - Done
  • Login employee - Done
  • Logout employee - Done

Access controls/ Restriction and Redirections

  • Setting Up Access control for user in the system
  • Securing the ajax based end points

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published