This example demonstrates how to use Express and Passport and mysql and twig as template to authenticate users using a username and password with form-based authentication. Use this example as a starting point for your own web applications.
To install this example on your computer, clone the repository and install dependencies.
$ git clone https://github.com/ericpan17/express-passport-local-mysql.git
$ cd express-passport-local-mysql
$ npm installStart the server.
$ node server.jsOpen a web browser and navigate to http://localhost:3000/ to see the example in action.