Octo Events is an application that listens to Github Events via webhooks and expose by an api for later use.
To get started locally, follow the next instructions.
After installed all necessary dependencies to run the project in your local environment, you need execute the following steps.
# clone the repository
$ git clone https://github.com/autscc/octo-events.git
# Now, go to project folder
$ cd octo-events-api
# install project dependencies
$ mvn clean install
Execute mvn test
to run the tests.
First of all, you need provide a public URL to synchronize your application with webhook integration on Github.
For create a public HTTP URL you can use the Ngrok.
$ ngrok http 8081
8081 it's the port where the server is available
Now, go to your project root folder and execute:
# Execute Jar file
$ java -jar target/octo-events-api-1.0.0-SNAPSHOT-jar-with-dependencies.jar
Basically, The application expose two endpoints.
- URL: /events/, Method: Post. Receives events from Github and saves them on the database. You can see more details at https://developer.github.com/webhooks/
- URL: /issues/:number-issue/events, Method: GET, Parameter(:number-issue): Number of issue. Retrieve the events stored to specific issue.
important: the application context is /api/v1/.
- Maven - Dependency Management
- Alysson Tiago S. Cordeiro - Development