Giter Site home page Giter Site logo

octro-events's Introduction

Octo Events

Octo Events is an application that listens to Github Events via webhooks and expose by an api for later use.

alt text

The test consists in building 2 endpoints:

1. Webhook Endpoint

The Webhook endpoint receives events from Github and saves them on the database, in order to do that you must read the following docs:

It must be called /events

2. Events Endpoint

The Events endpoint will expose the persist the events by an api that will filter by issue number

Request:

GET /issues/1000/events

Response:

200 OK

[ 
  { "action": "open", created_at: "...",}, 
  { "action": "closed", created_at: "...",} 
]

Github Integration Instructions

  • Tip: You can use ngrok (https://ngrok.com/) to install / debug the webhook calls, it generates a public url that will route to your local host:

    $ sudo ngrok http 4000

alt text

GitHub

alt text

Final Observations

  • Use any library / framework / gem you want, you don't have to do anything "from scratch"
  • Write tests, use your favorite framework for that
  • Use Postgres 9.6+ or MySQL 5.7+ for your database;
  • Add to README.md your instructions for running the project. Whether you're delivering just source code or an accompanying Dockerfile/docker-compose.yml, we expect at most the following commands to be needed to run your solution (besides the usual docker related deploy steps):
    • rake db:create
    • rake db:migrate
    • rails s -p 3000 -b '0.0.0.0'
  • The oldest supported Ruby version is 2.5.1;
  • Have fun and we hope you succeed :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.