项目作者: negarineh

项目描述 :
NodeJs Authentication(Session Based Authentication Method)
高级语言: JavaScript
项目地址: git://github.com/negarineh/NodeJs-Session-Based-Authentication-Method-.git
创建时间: 2018-08-04T02:13:52Z
项目社区:https://github.com/negarineh/NodeJs-Session-Based-Authentication-Method-

开源协议:MIT License

下载


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