negarineh / NodeJs-Session-Based-Authentication-Method-

NodeJs Authentication(Session Based Authentication Method)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeJs Authentication(Session Based Authentication Method)

Development

This project have written in Node.js and using MongoDB as database

Requirements

For running this app, you need to install Node.js from: https://nodejs.org/en/download/
In addition, you need to install MongoDB from here: https://www.mongodb.com/download-center#atlas
You can use any text editor for editing code but I used Visual Studio Code for writing this project:
https://code.visualstudio.com/download

Running Server Side

First you need to install dependencies:

npm install

Run installed MongoDB in your machine. In the 'config\database.js' you can change name of your database by the 'dburl' variable

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 in the browser.
All routes are available in 'app' file and can test through Postman(https://www.getpostman.com/apps)

note: After logout, you are not authorize to see '/protected' url

Build Status

About

NodeJs Authentication(Session Based Authentication Method)

License:MIT License


Languages

Language:JavaScript 74.9%Language:HTML 14.6%Language:CSS 8.3%Language:Dockerfile 2.2%