Skip to content

Express 4.x app using Passport for authentication with username and password.

License

Notifications You must be signed in to change notification settings

marton-laszlo-attila/express-4.x-local-example-basic-and-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This example demonstrates how to use Express 4.x and Passport to authenticate users using a username and password with form-based authentication. Use this example as a starting point for your own web applications.

Made based on the example of express-4.x-local-example by Jared Hanson.

Instructions

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

$ git clone [email protected]:marton-laszlo-attila/express-4.x-local-example-basic-and-react.git
$ cd express-4.x-local-example-basic-and-react
$ go to one of the folder
  > 01-basic
  > 02-fetch
  > 03-fetch_and_bcrypt
  > 04-react
$ cd backend
$ npm install

$ In the 04-react example
$ cd frontend
$ npm install
$ npm run build

Start the server.

$ node server.js (in the /backend folder)

Open a web browser and navigate to http://localhost:8000/ to see the example in action. Log in using username jack and password secret.

About

Express 4.x app using Passport for authentication with username and password.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.5%
  • EJS 14.2%
  • HTML 4.7%
  • CSS 2.6%