Coder Social home page Coder Social logo

transitmatters / new-train-tracker Goto Github PK

View Code? Open in Web Editor NEW
30.0 4.0 11.0 1.33 MB

Tracking the MBTA's new Orange, Red, and Green trains

Home Page: http://traintracker.transitmatters.org/

License: MIT License

Python 18.65% HTML 1.13% CSS 6.89% JavaScript 1.41% TypeScript 68.29% Shell 3.64%

new-train-tracker's Introduction

New Train Tracker

lint deploy

Developed by TransitMatters Labs

Shows new MBTA Orange, Red, and Green Line trains as they come into service.

Install & Run

Dependencies:

  • node 20.x (with npm 10.x)
  • python 3.12
  • poetry
    • Ensure poetry is using the correct Python version by running poetry env use <your python3.12 binary>

Run:

To use an API key, put it as an environment variable MBTA_V3_API_KEY

Linting

To lint frontend and backend code, run $ npm run lint in the root directory

To lint just frontend code, run $ npm run lint-frontend

To lint just backend code, run $ npm run lint-backend

AWS Deployment

  1. Make sure AWS CLI is set up and working โ€” i.e. aws cloudformation describe-stacks | wc -l should work
  2. Make sure these environment variables are set up in your shell (ask a Labs member for values if needed):
  • TM_NTT_CERT_ARN (for production)
  • TM_LABS_WILDCARD_CERT_ARN (for beta & production)
  1. A key named transitmatters-ntt needs to be available in your AWS account and copied to ~/.ssh/transitmatters-ntt.pem.
  2. Run ./deploy.sh (add -p for production) to deploy.
  3. You're all set! Visit:

Other Deployments

This project generally fits the "Chalice app" mold. Contact us if you need help: [email protected]

Support TransitMatters

If you've found this app helpful or interesting, please consider donating to TransitMatters to help support our mission to provide data-driven advocacy for a more reliable, sustainable, and equitable transit system in Metropolitan Boston.

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.