Source code of the blog post.
In order to download the code and try it for yourself:
- Clone the repo:
git clone https://github.com/bmshamsnahid/passportLocalTutorial.git
- Install packages:
npm install
- Change or create the database according to config/database
- Launch:
node server.js
or justnodemon
- Visit in your browser at:
http://localhost:8080
├── app/
├── config
│ └── database
│ └── index.js
│ └── passport
│ └── index.js
│ └── models/
│ └── user/
│ └── index.js
├── routes
│ └── auth
│ └── index.js
│ └── test
│ └── index.js
├── package.json
├── server.js
This project is licensed under the MIT license.
If you have any questions or comments, please create an issue.