Coder Social home page Coder Social logo

alerts_viewer's Introduction

AlertsViewer

AlertsViewer is an internal project helping us with myriad alert-related needs. It allows us to:

  • explore alert data
  • explore existing bus delay alerts
  • experiment with determining when alerts should be created

Architecture

AlertsViewer application architecture

Setup

Requirements

  • MBTA API key (get one here)
    • You may need to request an increased rate limit if you get errors during the first app startup; 2000 requests per minute should be enough
  • asdf with plugins: elixir, erlang

Instructions

  1. asdf install
  2. mix deps.get
  3. cp .env.example .env
  4. In .env: Fill in API_KEY= with the API key you obtained above. Obtain the SWIFTLY_AUTHORIZATION_KEY from the shared vault in 1password, and fill it in too.
  5. Export the variables in .env, eg in bash set -a && . .env && set +a
  6. mix ecto.setup
  7. MIX_ENV=test mix ecto.setup

Running tests

  • mix test

Development

To start your Phoenix server:

  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Flags

This project uses the Laboratory library to manage user flags. These flags are per-user, saved in local browser storage, and expire every 30 days. To see what flags are available and set them for yourself, visit the /_flags route (you may need to refresh the page to see a change). To add new flags, set them in the config file. They will automatically be available as assigns in both regular and live view pages.

alerts_viewer's People

Contributors

dependabot[bot] avatar arkadyan avatar erinlmoore avatar krisrjohnson21 avatar

Watchers

 avatar Paul Swartz avatar Walton Hoops avatar Brett Heath-Wlaz avatar Josh Larson avatar Joshua Fabian avatar Jack Curtis avatar Paul Kim avatar Luke Camelo 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.