MongoDB, Express, Angular, and Node.js Fundamentals by Paul Oluyege

MongoDB, Express, Angular, and Node.js Fundamentals by Paul Oluyege

Author:Paul Oluyege
Language: eng
Format: epub
Publisher: Packt Publishing pvt ltd
Published: 2019-02-27T00:00:00+00:00


Exercise 18: Creating a User-Authenticating System in a Node Application Using Passport's LocalStrategy

In this exercise, we will create a user authentication system in Node using LocalStrategy, which is a passport middleware. Ensure that all previous exercises and activities have been completed. To get started, create a new folder in a known directory, name it passport-local, and install the most recent versions of the following packages: express, body-parser, mongoose, bcryptjs, and passport-local. You can do this by running npm install express body-parser mongoose bcryptjs passport-local express-session cookieParser morgan flash –save on the CLI. Perform the following steps to complete the exercise:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.