The comprehensive step by step tutorial on building secure Node.js, Express.js, Passport.js, and PostgreSQL Restful Web Service. Previously, we have shown you a combination of Node.js, Express.js, and PostgreSQL tutorial. Now, we just add security for that REST API Web Service endpoints. Of course, we will start this tutorial from scratch or from zero application. We will use JWT for this Node.js, Express.js, Passport.js, and PostgreSQL tutorial.
The following tools, frameworks, and modules are required for this tutorial:
We assume that you have installed PostgreSQL server in your machine or can use your own remote server (we are using PostgreSQL 9.5.13). Also, you have installed Node.js on your machine and can run node
, npm
or yarn
command in your terminal or command line. Next, check their version by type this commands in your terminal or command line.
node -v
v8.12.0
npm -v
6.4.1
yarn -v
1.10.1
That the versions that we are uses. Let’s continue with the main steps.
#node-js #express #postgresql #javascript