https://github.com/stonet2000/githubintegrators
https://github.com/stonet2000/githubintegrators
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stonet2000/githubintegrators
- Owner: StoneT2000
- Created: 2019-10-07T01:29:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T10:26:33.000Z (about 3 years ago)
- Last Synced: 2025-02-05T13:52:55.419Z (11 months ago)
- Language: JavaScript
- Size: 7.61 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 40
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Integrating Github
Basic integration.
First fork this repository
Run the react app by running
```cmd
npm start --prefix ghapp
```
Run the backend which is **required** by running
```cmd
node app.js
```
## Login with GitHub
When the react app is running, by going to `localhost:3000/`, you can see a button to sign in with GitHub. Once signing in is complete and authorization is given, the app will return to a new page showing the access token given by GitHub that we can use to make requests on behalf of the user to the GitHub API.
## Webhooks
`app.js` and `payload.js` are the frameworks for processing GitHub events such as new Pull Requests, closing PRs, new issues, new push, deployment etc.
Full list here: https://developer.github.com/webhooks/
For webhooks to work, you need this framework and you need to setup a webhook that posts to your endpoint with this framework.