display bikes close to Metrorail stations using Node, ES7, webpack, React, bootstrap
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
views
README.md
app.js
package.json
webpack.config.js

README.md

To get started

  • npm install
  • npm run develop

Uses the Capital Bikeshare API with node server-side. There are two reasons to do this instead of accessing bikeStations.xml directly over AJAX, which would have been simpler:

  • CORS issues - Capital Bikeshare does not set appropriate headers to allow CORS requests; the node/express app is effectively a CORS proxy
  • Smaller response size - the response to the client only contains the 5 closest stations to the selected Metro stop, instead of the full set of bike stations.