Skip to content

jmhooper/commute-dashboard

Repository files navigation

This is an application that displays a dashboard showing when nearby buses and trains are expected and how many bikes are in nearby stations. It gets data from the following places:

I build this to give myself a quick dashboard to reference when thinking about how I want to get to work. The most essential questions it answers:

  1. Is there a nearby bus I can catch?
  2. Are there bikes in the bikeshare station?
  3. Are there trains running on time?

Getting started

Setting up this app requires setting a few environment variables:

  • WMATA_API_KEY: The API key for the WMATA API
  • WMATA_BUS_STOP_IDS_HOME: The stop IDs for the bus stops near your home
  • WMATA_BUS_STOP_IDS_WORK: The stop IDs for the bus stops near your work
  • METRO_RAIL_STATION_CODES_HOME: The rails station codes for train stations new your home
  • METRO_RAIL_STATION_CODES_WORK: The rails station codes for train stations new your work
  • CABI_STATION_IDS_HOME: The station IDs for nearby CaBi stations
  • CABI_STATION_IDS_WORK: The station IDs for nearby CaBi stations

This app uses dotenv so you can set these in a .env file.

After the environment is setup you can start things up like this:

npm run build
npm start

There is also a development mode that will watch for changes and re-build in response:

npm run watch

When everything is running the app should be available on http://localhost:3000/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors