- Launch
mongod
- Install all dependencies by
npm i
- Launch app by
NODE_ENV=development node app.js
- ...
- Profit
DariusNorv/passport-auth-example
The most widely used way for websites to authenticate users is via a username and password. Support for this mechanism is provided by the passport-local module.
JavaScript