Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.13 KB

File metadata and controls

37 lines (29 loc) · 1.13 KB

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.