Web / mobile app for checking the balance of your Pandacoin (PND) wallet address(es), as well as the currency value of Pandacoin.
Pandacoin PND Balance consists of two parts:
- A pure HTML / CSS / JavaScript front end built with the AngularJS JavaScript framework.
- A Google App Engine back end, written in Python, that looks up wallet balance data from the Pandacoin PND Blockchain and caches currency price data from the cryptocoincharts.info API.
The front end communicates with the back end via JSONP calls. The backend polls cryptocoincharts.info every 10 minutes, and it stores this data in memcache for all subsequent client requests, in order to reduce load on the CryptoCoinCharts server. Wallet balance lookups from the Pandacoin (PND) Blockchain API occur on demand.
This project is organized to make use of the Cordova command line tools (version 3.1).
www
- common web assetsmerges/android
- Android specific web assets to override those inwww
merges/wp8
- Windows Phone 8 specific web assets to override those inwww
platforms/android
- Android specific filesplatforms/wp8
- Windows Phone 8 specific fileswebapp
- files for hosted web app (Chrome, Firefox OS)webapp/chrome
- metadata files for the Chrome hosted web app, including the manifest and icons
I originally wrote this using Apache Cordova 2.9 solely for Android. I later reorganized it to use Apache Cordova 3.1 for multiple Operating Systems, and have been building and running the project using the Cordova 3.1 CLI.
If you don't have Cordova 3.1 installed, follow the CLI instructions. If you have an older version, you can upgrade. If, by the time you read this, there is a newer version of Cordova, you can probably use that :).
I have had success running the project on my physical Android phone. On the command line, within the project directory:
- Android (plug your phone into your computer) -
cordova run android --verbose
UPDATE: I updated cordova to version 3.5. Here are some issues that I've seen since then:
- For Android: If you run
cordova build android
and get the error: "platforms/android/ant-build/AndroidManifest.xml:2: error: Error: Float types not allowed (at 'versionCode' with value 'NaN').", run the./setVersion.sh
script to overwrite the NaN value in that file.
Drake Emko - drakee (a) gmail.com