This is a tool i wrote for a Hackathon at my School, which i helped organize. The Tool is general purpose for any hackathon that wants to display their hackers commits live as a nice gimmick.
- Ensure Docker is installed, otherwise install it first.
- get the docker Image
docker pull ghcr.io/poisonlocket/quackstream:latest
- Run the image, port 8000 is exposed for the backend, port 3000 for the frontend
docker run -itd -p 3000:3000 -p 8000:8000 ghcr.io/poisonlocket/quackstream:latest
- Ensure that your endpoints are available on the public internet and on different domains, for testing i recommend the npm package localtunnel.
- Tell all the repository owners to use the participant setup guide to integrate their repositorys with Quackstream via Github Webhooks and provide them with the domain where the backend of the service is hosted, while they are doing this take a quick break and get some coffee or feed the rubber ducks at your local desk.
- Go into your repository Settings and Select Webhooks
- Change the payload url to the provided url by the organizers
- Ensure /webhook is at the end of the url, if not add it in to reach the webhook route.
- Set the content type to
application/json
- Ensure that https is enabled, the webhook only sends the push event and the webhook is marked active
- Update your webhook at the bottom of the page
- push something to your repo, you can use the --allow-empty flag for an empty git commit, write a small commit message like ```quacking code now``.
- check the recent deliveries tab to see if your webhook was able to deliver the commit data successfully, then check the big screen where the commits are displayed.
- You are done and the webhook is setup, go report back to the organizers.
,----,
___.` `,
`=== D :
`'. .'
) ( ,
/ \_________________/|
/ |
| ;
| _____ /
| \ ______7 ,'
| \ ______7 /
\ `-,____7 ,'
^~^~^~^`\ /~^~^~^~^ #Quack
~^~^~^ `----------------' ~^~^~^
~^~^~^~^~^^~^~^~^~^~^~^~^~^~^~^~