8000 GitHub - khan-rasul/Authentication: Working Authentication example on a node server using Passport and MySQL
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

khan-rasul/Authentication

8000

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication

Working Authentication example on a node server using Passport and MySQL

How to Install

I have used MySQL here

Creating The database

Create the database and the user table using the following command

mysql> CREATE DATABASE auth_demo;
mysql> USE auth_demo;
mysql> CREATE TABLE users(username VARCHAR(50), salt VARCHAR(150), hash VARCHAR(150));

Cloning the repository and installing dependencies

To install this example on your computer- clone the repository and install dependencies.

$ git clone https://github.com/lusar98/Authentication.git
$ cd Authentication
$ npm install

Starting the server

$ node app.js

Open a web browser and navigate to http://localhost:3000/.

Note Don't forget to change database.js file in utils directory, if required, to match your own database.

About

Working Authentication example on a node server using Passport and MySQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0