Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.93 KB

README.md

File metadata and controls

19 lines (13 loc) · 1.93 KB

At Stop

A hybrid mobile app that provides information about when the next bus will arrive at your stop. The app uses free MTA Bus Time Developer API's to get the real-time location of the buses serving a particular stop. The app is built on top of Ionic Framework, AngularJS and PhoneGap.

Setting up the project

  • First, download the source code.
  • Second, you'll need to get the MTA Bus Time Developer API key. Go here to request one. You will receive the key within half an hour. Then, rename the resources/js/config_tmpl.js to config.js. Insert your key to the BTKey field.

Running and testing

There are two methods to run and test the app,

  1. Use the serve function of ionic
  2. Use the PhoneGap Developer App. In order to build the native mobile app, use Adobe PhoneGap Build. Rename the config.tmpl.xml to config.xml. Archive the www folder and upload it on PhoneGap Build. You can also use PhoneGap Emulatation extension for Google Chrome. NOTE: The app uses several objects, like the connection object from the Apache Cordova framework, which may not be available locally (in a Web browser).

Using JSHint, UglifyJS, and Pngquant-Imagemin###

Run npm install in the root of the project. To use JSHint, run gulp lint. In order to use UglifyJS, run gulp compress. It will create new compressed files in dist folder in the root of the project. To compress the splashes, run compress_resources.

Project License

The project is based on Apache License, version 2.0.