Smartphone app for counting pedestrians, which connects to an instance of the hosted Web application PedPlus. Built using PhoneGap (also known as Apache Cordova), which generates native apps for iPhone and Android.
This repo includes three different pieces:
- HTML/CSS/JavaScript files generated by a Middleman application in
/source
- iPhone native application project in
/project-ios
- Android native application project in
/project-android
The HTML/CSS/JavaScript is symlinked into the iOS and Android projects following instructions at: http://www.tricedesigns.com/2012/02/16/linked-source-files-across-phonegap-projects-on-osx/
NOTE: This software is not entirely finished or polished. It's never actually been compiled and posted to the App Store (for iPhone) or Google Play (for Android).
-
Have Ruby 1.9.3 installed on your computer (most easily done using RVM or rbenv and ruby-build). Middleman requires Ruby to build the final package of HTML, CSS, and JavaScript files.
-
You'll need to run your own instance of the PedCount/PedPlus Web application. Put its URL in
source/javascripts/smartphone.coffee
as the "host" so that your version of the mobile app(s) will try to connect with the right server.
-
Sign up for the Apple iOS Developer Program.
-
Install the Apple XCode integrated development environment] and afterwards use XCode to download its optional components, including the "command line tools."
-
Download and install the entire Android SDK package for beginners, which includes a copy of Eclipse (its default integrated development environment).
-
Sign up as a developer for the Google Play store.