Skip to content

This repo is added to get in detail knowledge about how to implement Registration, Authentication, Hashing of password, Storing & Retrieving Cookies and Multidevice logout in our Website.

License

Notifications You must be signed in to change notification settings

saurabhngits/Node_Employee_Registration_To_Logout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Table of Contents :

1. Pre-Requisites
2. Add Dotenv File
3. Install Modules
4. Run Project
5. Test Project



1. Pre-Requisites

The following tools are need to be pre-install on your system



2. Add Dotenv File

Add .env file to your root folder and then add required valiables as mention below into this file.

SECRET_KEY=<your_secret_key_to_generate_jwt_tokens_of_32_chars_in_length>
DB_CONN_STR=<your_mongodb_connection_string>

E.g.

SECRET_KEY=mynameissaurabhsunilkhairethecreator
DB_CONN_STR=mongodb://localhost:27017/employeeDB


3. Install required modules

Run the below command to install the required modules into this project.

> npm i


4. Run project

Run the below command to run this project

> npm run start

OR


Run the below command to run this project with nodemon

> npm run dev


5. Test project

Test this project at your browser with below address and port number:

http://localhost:3000/

About

This repo is added to get in detail knowledge about how to implement Registration, Authentication, Hashing of password, Storing & Retrieving Cookies and Multidevice logout in our Website.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published