Giter Site home page Giter Site logo

equivalent / mandril_event_webhook_collector Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 236 KB

sample Rails Web-Application that will receive Mandril Event Webhooks and display them

License: MIT License

Ruby 85.25% JavaScript 1.50% CSS 0.12% HTML 13.14%

mandril_event_webhook_collector's Introduction

Mandril Event Webhook Collector

BuildStatus

Sample Ruby on Rails that would:

  • receive webhooks from Mandrill
  • processes the webhook data and stores it into a suitable data store
  • displays the following statistics
    • total number of emails sent
    • total number of emails opened
    • total number of clicks
    • open rate per email type
    • click rate per email type

Note: The application is overkill for simple task like this (no need for processor object, or for use of a heavy framework like Rails) I was just demonstrating solution to particilar problem/approach at one job interview.

Usage

Point Mandrill event webhook to /api/v1/events

Processing of Events is done via background job so make sure delayed job is running bundle exec bin/delayed_job start

Todo

  • introduce Russion-Doll caching or level caching
  • implement policy clases for authentication & authorization
  • pagination
  • search with ransack
  • implement Sidekiq for background processing
  • extract Event#raw to some more sutable storage (Redis? Mongo?)

Related projects

If This project is not exactly what you were looking for, check my other similar project built in Sinatra doing similar thing for SendGrid Sendgrid Event Webhook Collector

mandril_event_webhook_collector's People

Contributors

equivalent avatar

Watchers

 avatar James Cloos avatar  avatar

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.