spaleMarko / node_docker

0 stars 0 forks source link

REST_API_START #5

Open spaleMarko opened 3 years ago

spaleMarko commented 3 years ago
  1. Added dependency for
    • npm install --save express
    • npm install --save nodemon
    • npm install --save mongoose
    • npm install --save body-parser
  2. Added routes folder
    • Add user.js with get route for all users DUMMY
  3. Tested
    • WORKING
spaleMarko commented 3 years ago
  1. AUTH START
    • Added dependency for npm install --save dotenv
    • Create model folder and User.js
    • Add connect to app.js
spaleMarko commented 3 years ago
  1. VALIDATION EMAIL AND PASSWORD
    • Added dependency for npm install --save joi
    • Create in root file validation.js
    • Implement in route for register
spaleMarko commented 3 years ago
  1. Added BCRYPT
    • Added dependency for npm install --save bcryptjs
spaleMarko commented 3 years ago
  1. LOGIN ROUTE
    • Added login functionality
spaleMarko commented 3 years ago
  1. JSON WEB TOKEN
    • Added dependency for npm install --save jsonwebtoken
    • Added functionality for token and return to headers in login route