This practice is inspired from https://github.com/passport/todos-express-password.git
Addition feature:
- Typescript
- Login 3 strategies in one app: Local, Facebook, Google
To run this app, clone the repository and install dependencies:
$ git clone https://github.com/tunganhtran/nodejs-login.git
$ cd nodejs-login
$ npm install
Create .env file with content: (Please learn how to create Facebook App and Google App)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
Then start the server.
$ npm run dev
Navigate to http://localhost:8080
.