Github events
Project to save and filter github events using webhooks
Getting Started
To run this project on your machine you only need to follow those steps:
- Install Postgres
- Install ngrok
- Run
bundle install
- Run
rake db:create
- Run
rake db:migrate
- Run
ngrok http 3000
. It will build the url to use at the next step. - Run
SECRET_TOKEN=ANY-TOKEN NGROK_URL=NGROK-URL rails s
- Run
rails db:fixtures:load
. This is step is optional. It will populate the db with some seed data. You can use some of the users to sign in.
The project index will show all repositories created by events triggered by Github and some settings to configure the webhooks at Github.
Testing
All tests were made with Rails native suite test, to run it you need to use this command:
rails test
API
It only have two endpoints:
/events
. Used to create events from hooksissues/:issue_id/events
. Paginated endpoint to list all events from an issue.