Implementing the concept of authentication and password hashing using Fastify, passport, crypto, and Node.js
For development, you will only need Node.js and a node global package, installed in your environment.
-
Just go on official Node.js website and download the installer. Also, be sure to have
git
available in your PATH,npm
might need it (You can find git here). -
You can install nodejs and npm easily with apt install, just run the following commands.
$ sudo apt install nodejs $ sudo apt install npm
If the installation was successful, you should be able to run the following command.
$ node --version
v18.12.1
$ npm --version
8.19.0
$ git clone https://github.com/ritul-mtalkz/try_passport_node.git
$ cd try_passport_node
$ npm install
$ npm run dev