PhoneGap Day NY - October 12th, 2017
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 and git.
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 7.0.1.
$ phonegap -v
7.0.1
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 Visual Studio Code, but you can use another editor if you have a favorite.
- Download Visual Studio Code, from https://code.visualstudio.com.
- 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
iPhone, 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 Explorer.
Android users may optionally install SensorTag and nRF Master Control Panel.
Note that older devices Android may not support Bluetooth Low Energy. If your phone doesn't work, please request a loaner device for the workshop.
If you run into any problems with the software installation, please email me and I'll work with you to get it fixed before the class.