Skip to content

indahsramonasari/nodejs-crud-using-jwt-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation

This is an example of crud project using Node.js and postgres

  • Node.js
  • Express.js
  • Postgres sql
  • Sequelize
  • Jwt Auth

Script database

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

API Documentation using postman

https://www.getpostman.com/collections/ed5df8269cbe7f131f8f

How to run this project

  • npm install

  • npm start

  • the application will running on port 8080

  • Try to do a user registration, then sign in

  • Try to register signup.png

  • Try to sign in signin.png

  • Try to add a product addproduct.png

  • Try to get all product list getproducts.png

  • Try to find a product by product id getproductbyid.png

  • Try to update a product by product id update.png

  • Try to delete a product by product id using postman delete.png

Reference

About

This is a simple crud project using nodejs with jwt auth

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published