Skip to content

NodeJS app to consume MBTA API and show active _new_ orange line trains

Notifications You must be signed in to change notification settings

neckenth/oranges

Repository files navigation

oranges

Node app to consume MBTA API and show active new orange line trains. Intended for primarily mobile use, but web also works.

requirements

  • built with Node version 10.16.3
    • if you already have Node Version Manager installed, run nvm use prior to beginning development
    • otherwise install nvm, then run: nvm i

runtime instructions

development

  1. npm install
  2. optional: request API key from the MBTA v3 API and add it as API_KEY in a .env file at project root
    • alternatively, in /server/index.js comment out config definition in /api/oranges route and remove config arg from axios request
  3. npm run start-dev and in a different terminal npm run build

credits

  • algorithm to determine which MBTA trains are "new" based on newtrains.today

Screen Shot 2020-03-29 at 3 44 36 PM

About

NodeJS app to consume MBTA API and show active _new_ orange line trains

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published