/try_passport_node

Use passport as modular authentication for my Node. js application.

Primary LanguageJavaScript

Use passport as modular authentication for my Node. js application.

Implementing the concept of authentication and password hashing using Fastify, passport, crypto, and Node.js


Requirements

For development, you will only need Node.js and a node global package, installed in your environment.

Node

  • Node installation on Windows

    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).

  • Node installation on Ubuntu

    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

Install

$ git clone https://github.com/ritul-mtalkz/try_passport_node.git
$ cd try_passport_node
$ npm install

Run the project

$ npm run dev