GithubHelp home page GithubHelp logo

tubbz-alt / email-alert-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alphagov/email-alert-api

0.0 0.0 0.0 7.27 MB

Sends email alerts to the public for GOV.UK

Home Page: https://docs.publishing.service.gov.uk/apps/email-alert-api.html

License: MIT License

Ruby 99.86% Shell 0.02% Dockerfile 0.12%

email-alert-api's Introduction

email-alert-api

Sends emails to users that subscribe to specific GOV.UK email alerts.

Provides a consistent internal interface to external email notification services. Currently supports only GOV.UK Notify.

Nomenclature

  • Content change:

    • A publication event that creates or changes a content item
    • The representation of that event for the purpose of sending emails
  • Message:

    • A message, distinct from a content change, that can be sent to subscribers of a list
    • The representation of that event for the purpose of sending emails
  • Subscriber list:

    • A particular titled list that a user can sign up to
    • Contains criteria to determine which notifications a subscriber will receive (eg. all publications by HMRC)
  • Subscriber:

    • A user who has subscribed to one or more subscriber lists
  • Subscription:

    • The relationship between a subscriber and the subscription lists they are subscribed to
  • Digest run:

    • One batch of either daily or weekly digests representing a particular subscription that has a start and end time and a set of subscribers to send emails to
  • Email:

    • An email generated from content changes or messages to be sent to subscribers

Technical documentation

Dependencies

  • PostgreSQL database (9.3 or higher - requires json with json_object_keys method)
  • Redis (for Sidekiq)
  • GOV.UK Notify API key and other details (see email_service.yml for required fields)

Running the application

bundle exec rails server

Running the test suite

bundle exec rspec

Documentation

Licence

MIT License

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.