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
- Host: GitHub
- URL: https://github.com/bearlike/node-github-oauth-login
- Owner: bearlike
- Created: 2021-06-24T13:43:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T11:44:38.000Z (almost 5 years ago)
- Last Synced: 2025-01-04T19:25:02.568Z (over 1 year ago)
- Topics: example-project, nodejs, oauth2
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```