An open API service indexing awesome lists of open source software.

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

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.

![jwt-token-authentication-node-js-example-flow](jwt-token-authentication-node-js-example-flow.png)

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:

![jwt-refresh-token-node-js-example-flow](jwt-refresh-token-node-js-example-flow.png)

> [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
```