This is a simple shell of a project using Node.js, Express, and Pug. It was originally based on the TypeScript-Node-Starter project, then simplified, updated, and cleaned up a bit.
npm install
You need to get OAuth app credentials for Twitter, Google, and GitHub.
Be sure when setting up each of these apps in the services that you set the correct callback url. For deveopment, those will be:
- Twitter --
http://localhost:3000/auth/twitter/callback
- GitHub --
http://localhost:3000/auth/github/callback
- Google --
http://localhost:3000/auth/google/callback
Copy the template .env
file found in .env.example
to .env
. NEVER SHARE OR PUBLISH THIS FILE.
cp .env.example .env
Replace each of the credentials for Twitter, Google, and GitHub that you setup above. If you prefer to remove any of these methods, you can remove them from the login options in views/partials/header.pug
.
npm run build
npm run watch
npm run start
Copyright (c) Textile. All rights reserved. Licensed under the MIT License.