Skip to content

This app illustrates how to use Passport with Express to sign users in with a username and password.

License

Notifications You must be signed in to change notification settings

trananhtung/nodejs-login

Repository files navigation

Todo List App

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

Quick Start

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.

Alt Text

About

This app illustrates how to use Passport with Express to sign users in with a username and password.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published