PhoneGap Day - January 28th, 2016
In order to get the most of the class, we're asking everyone to install the software before the workshop.
It's important that you follow this guide and have you computer setup before you arrive. We want to spend time learning about Bluetooth not installing software.
We are using PhoneGap to write mobile apps for iOS and Android. PhoneGap requires Node.js.
- Download Node.js 4.2.4 from https://nodejs.org/.
- Run the Node.js installer.
Use npm
(which is included with Node.js) to install PhoneGap.
Mac users, open Terminal.app and run
sudo npm install -g phonegap
Mac users might be prompted to install the XCode or the command line developer tools. It's OK to install these, but it's faster if you choose Not Now.
Windows users, open cmd.exe and run
npm install -g phonegap
Linux users, open terminal and run
npm install -g phonegap
Verify that PhoneGap installed correctly. Run phonegap -v
and ensure that it prints out the version number. You're OK as long as your version number is greater than 5.4.0.
$ phonegap -v
5.4.0
The phonegap serve
command opens a socket on port 3000. If your laptop has a fire wall, ensure that port 3000 is open. This is especially important if you have a Windows laptop that's locked down by you IT department.
You're going to need a text editor. I recommend installing Atom, but you can use another editor if you have a favorite.
- Download Atom.io from https://atom.io/.
- Mac users should drag Atom.app to /Applications.
- Windows users should run the installer.
- Linux users should install the deb or rpm
jshint
is a tool we will use to find errors in JavaScript code.
Install jshint with npm.
npm install -g jshint
Mac and Linux users may need to use sudo
sudo npm install -g jshint
If you installed the Atom editor, you should install the atom-jshint plugin.
apm install atom-jshint
Phone, iPod and iPads users should install the PhoneGap Developer App from the App Store.
Android users should install PhoneGap Developer App from Google Play.
iPhone, iPod and iPads may optionally install the SensorTag and LightBlue.
Android users may optionally install SensorTag and nRF Master Control Panel.
Note that older devices and operating systems may not support Bluetooth Low Energy. If your phone doesn't work, please [request a loaner device](mailto:don@chariotsolutions.com?subject=Loaner Device&body=I'd like to borrow a phone for the PhoneGap Day Bluetooth LE Workshop.) for the workshop by emailing don@chariotsolutions.com.
If you run into any problems with the software installation, please [email me](mailto:don@chariotsolutions.com?subject=PhoneGap Day Software Install Help) and I'll work with you to get it fixed before the class.