This is an example of crud project using Node.js and postgres
- Node.js
- Express.js
- Postgres sql
- Sequelize
- Jwt Auth
Install postgres sql and then open the terminal after the installation complete
- psql postgres
- CREATE ROLE postgresdb WITH LOGIN PASSWORD 'Yuhu123';
- ALTER ROLE postgres CREATEDB;
- exit
- psql postgres -U postgresdb
- CREATE DATABASE learnnode;
- The table will automatically generated because this project was use sequalize
https://www.getpostman.com/collections/ed5df8269cbe7f131f8f
-
npm install
-
npm start
-
the application will running on port 8080
-
Try to do a user registration, then sign in
- Node.js & Sequalize : https://scotch.io/tutorials/getting-started-with-node-express-and-postgres-using-sequelize
- Express : https://www.npmjs.com/package/express