Indego is a bike sharing program launched in Philadelphia. A design company in the city created a challenge for developers. The task was to build an app that saves the results from the bicycle API to a MongoDB database at a specific interval. The data can be queried via 3 APIs:
-
Snapshot of all stations at a specified time
-
Snapshot of one station at a specific time
-
Snapshots of one station over a range of times
- app.listen
- Establishes a connection with the database
- Fetches the current weather
- Fetches bike availability from the indego API
- Saves historical bicycle data
- app.get /api/v1/stations
- app.get /api/v1/station/:id
- app.get /api/v1/stations/:id
To Do:
Add tests