Express server with Passport and Twitter OAuth

A boilerplate for apps that use OAuth for authentication. This one uses Twitter, but it can be easily replaced or augmented with Facebook, Google or many others.

Install

git clone https://github.com/dev-academy-challenges/boilerplace-oauth.git
cd boilerplace-oauth
npm install

A postinstall script will run a knex migration that creates a users table.

Setup

mv .env.example .env
  • Edit .env to include your Twitter app's keys

Start/debug

npm start
# or npm run debug

Next

Build out the rest of your app 😉