https://github.com/bezkoder/node-js-jwt-authentication-postgresql
Node.js JWT Authentication & Authorization with PostgreSQL example
https://github.com/bezkoder/node-js-jwt-authentication-postgresql
Last synced: 5 months ago
JSON representation
Node.js JWT Authentication & Authorization with PostgreSQL example
- Host: GitHub
- URL: https://github.com/bezkoder/node-js-jwt-authentication-postgresql
- Owner: bezkoder
- Created: 2020-11-19T14:36:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-25T10:01:27.000Z (over 2 years ago)
- Last Synced: 2025-04-14T22:37:13.704Z (9 months ago)
- Language: JavaScript
- Size: 58.6 KB
- Stars: 112
- Watchers: 2
- Forks: 70
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js – JWT Authentication example with PostgreSQL example
## User Registration, User Login and Authorization process.
The diagram shows flow of how we implement User Registration, User Login and Authorization process.

For more detail, please visit:
> [Node.js JWT Authentication & Authorization with PostgreSQL example](https://www.bezkoder.com/node-js-jwt-authentication-postgresql/)
You may need to implement Refresh Token:

> [Node.js JWT Refresh Token example](https://www.bezkoder.com/jwt-refresh-token-node-js/)
Working with Front-end:
> [Vue.js JWT Authentication with Vuex and Vue Router](https://www.bezkoder.com/jwt-vue-vuex-authentication/)
> [Angular 8 JWT Authentication example](https://www.bezkoder.com/angular-jwt-authentication/)
> [Angular 10 JWT Authentication example](https://www.bezkoder.com/angular-10-jwt-auth/)
> [Angular 11 JWT Authentication example](https://www.bezkoder.com/angular-11-jwt-auth/)
> [Angular 12 JWT Authentication example](https://www.bezkoder.com/angular-12-jwt-auth/)
> [Angular 13 JWT Authentication example](https://www.bezkoder.com/angular-13-jwt-auth/)
> [React JWT Authentication & Authorization (without Redux) example](https://www.bezkoder.com/react-jwt-auth/)
> [React Redux JWT Authentication & Authorization example](https://www.bezkoder.com/react-redux-jwt-auth/)
## More Practice:
> [Node.js CRUD Rest APIs with Express, Sequelize & PostgreSQL example](https://www.bezkoder.com/node-express-sequelize-postgresql/)
> [Node.js Express Pagination with PostgreSQL example](https://www.bezkoder.com/node-js-pagination-postgresql/)
> [Node.js Express File Upload Rest API example](https://www.bezkoder.com/node-js-express-file-upload/)
> [Node.js Express File Upload with Google Cloud Storage example](https://www.bezkoder.com/google-cloud-storage-nodejs-upload-file/)
Associations:
> [Sequelize Associations: One-to-Many Relationship example](https://www.bezkoder.com/sequelize-associate-one-to-many/)
> [Sequelize Associations: Many-to-Many Relationship example](https://www.bezkoder.com/sequelize-associate-many-to-many/)
Integration on same Server/Port:
> [Integrate Vue with Node.js Express](https://www.bezkoder.com/serve-vue-app-express/)
> [Integrate Angular with Node.js Express](https://www.bezkoder.com/integrate-angular-12-node-js/)
> [Integrate React with Node.js Express](https://www.bezkoder.com/integrate-react-express-same-server-port/)
## Project setup
```
npm install
```
Then, edit `app/config/db.config.js` with correct DB credentials.
### Run
```
node server.js
```