Skip to content

bjdixon/bus-arrival-predictions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Status devDependency Status

Lookup bus routes and next arrival predictions.

You can see a live example of this running here: ttc.ninja

This version is defaulting to the TTC (Toronto Transit Commission) as it's one of only a couple of transit services that implement the predictions API. Well... that and I live in Toronto.

It could be adapted for many other municipalities. Once running a list of transit agencies can be found here: http://localhost:8080/agencies

Instructions for installation

git clone https://github.com/bjdixon/bus-arrival-predictions.git
cd bus-arrival-predictions
npm install
node server.js

Serves restbus api eg: http://localhost:3000/agencies/ttc/routes/90/

Serves front end application (angular) eg: http://localhost:8080/

Includes a small suite of integration tests that require protractor.js to run.

Instructions for testing

You have to run webdriver-manager start and npm start before you can run grunt test

About

Use node and angular to create a bus arrivals predictions website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published