riasingh12 / user-authentication

Community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connect

Community

node js, express, mongodb, postman, reactjs needed

For backend, Libraries needed: (unzip node_modules.zip before use)

npm install --save express-validator mongoose

express used to create the server validator validates incoming requests which come to application ie payload of the requests witht cause we gon use mongodb (schema less), so we adding mongoose library so that we can add schema and all

npm --install dotenv

dotenv library used to run .env file

npm —-insatll nodemon

so that we dont need to start node again and again, it is going to watch and reload files (dev cause dev dependency)

npm --install bcrypt for password hashing and token creation via SHA256

Extra Notes:

  1. express is an unopinionated framework, we can write our code in own style route will create route path models=database controllers=logic

  2. add the following in a .env file

PORT=2000 MONGO_DB_USER=admin MONGO_DB_PASSWORD=admin MONGO_DB_DATABASE=events JWT_SECRET=MERNSECRET

For Frontend,

  1. npm install react-bootstrap bootstrap - -save

react-bootstrap // can import components like alert from bootstrap

npm install --save react-router-dom

to navigate from one page to another page (user feels it has multiple pages but irl its one webpage)

About

Community


Languages

Language:JavaScript 89.6%Language:HTML 9.4%Language:CSS 1.0%