Process GitHub events for fun and profit.
For the next steps, you need to have Docker and psql installed.
You also need to create a ngrok account and generate an auth token.
- Create a docker volume named
ìssuesdb
and copy thestructure.sql
file there. This volume will later be mounted to the container and create the structure in the database automatically.
docker volume create issuesdb
sudo cp structure.sql /var/lib/docker/volumes/issuesdb/_data/structure.sql
- Run docker-compose. This will create 3 containers: ngrok, postgresql and the github-webhook-server.
export NGROK_TOKEN=<your token goes here>
docker-compose up
- If you want to make sure that the database was created correctly, or change your password, you can connect to it with psql:
psql issues -h localhost -U admin
- Add proper logging.
- Add unit and integration tests.
- Make actions configurable.
- Learn how to actually code in GO and refactor everything xD
Tutorials and articles that helped me build this project: