Node app to consume MBTA API and show active new orange line trains. Intended for primarily mobile use, but web also works.
- 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
- if you already have Node Version Manager installed, run
npm install
- 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 removeconfig
arg from axios request
- alternatively, in /server/index.js comment out
npm run start-dev
and in a different terminalnpm run build
- algorithm to determine which MBTA trains are "new" based on newtrains.today