An open API service indexing awesome lists of open source software.

https://github.com/bearlike/node-github-oauth-login

Node.js app demonstrating login via GitHub using oAuth
https://github.com/bearlike/node-github-oauth-login

example-project nodejs oauth2

Last synced: 3 months ago
JSON representation

Node.js app demonstrating login via GitHub using oAuth

Awesome Lists containing this project

README

          

# Demo OAuth Login via GitHub

## Setup
1. Rename `example.env` to `.env`
2. Create a client secret and save it along with the client ID in the `.env` file.
3. Setup `HOST` and `PORT` in the `.env` file.
4. `npm install`
5. `npm start`

## Docker Setup (Alternative)
```bash
docker build . -t krishna/demo-ghoauth-node
docker run --name oauth-node-demo -d -t -p 12345:80 krishna/demo-ghoauth-node
```