For more detail, please visit:
Node.js JWT Authentication & Authorization with PostgreSQL example
Working with Front-end:
React JWT Authentication & Authorization (without Redux) example
Integration on same Server/Port:
npm install
Then, edit app/config/db.config.js with correct DB credentials.
node server.js