Simple secure CRUD program using Node.js, Express.js, and Sequelize ORM.
- Register User (User that just registered also considered login)
- Login User
- Update User
- Logout User
- Reauthenticate Token
Backend
- Express js
npm install express
- Sequelize ORM
npm i sequelize
- Postgres (pg)
npm install pg
- Cors Middleware
npm install cors
- Bcrypt hash password
npm i bcrypt
- Dotenv
npm i dotenv
- JSON Web Token
npm i jsonwebtoken
- script Monitoring server
npm install nodemon
(optional)
- Copy all query from
database.sql
and run it in local psql
- Direct folder to where
server.js
is, then runnodemon server.js
ornode server.js
in command prompt or power shell.
- Import the postman collection API to start using the service with the available route