Skip to content

Developing Adapt It Mobile on OS X

eb1 edited this page Oct 1, 2013 · 7 revisions

Basic steps to getting started with Adapt It Mobile development on OS X. Note that the step numbering is a bit off in the Markdown...

  1. Download and install node.js from: http://nodejs.org.
  2. Open a Terminal window and type in the following commands:

sudo npm install -gf cordova i18next i18next-conv

sudo npm update

  1. In that same Terminal window, check to see if there is a version of the Java developer kit (JDK) installed, and if so, what version:

java -version

  1. If there is no Java installed or if it’s the older 1.6.x version (which is unfortunately the target for a lot of security exploits), you’ll want to install the newer 1.7.x version. Download and install the Java JDK (not the JRE) from: http://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. Download and install GitHub for Mac from: https://github.com.
  3. While on the https://github.com web page, sign up for an account on GitHub and log in.
  4. Go to the github page for adapt-it-mobile: https://github.com/eb1/adapt-it-mobile. On that page, click on the Fork button.
  5. On the github web page for adapt-it-mobile, click on the Clone in Desktop button. Your browser should ask if you want to launch the GitHub app. Let it do so. Follow the prompts in the GitHub app to select a directory to store the copy of adapt-it-mobile.
  6. Download and install the Android SDK from: https://developer.android.com/sdk/index.html.
  7. [Optional] Download and install Inkscape from http://inkscape.org/
  8. [Optional] Schedule a launchd job to regularly update the npm packages (cordova, i18next and i18next-conv).

a. In the Terminal window, cd into the the adapt-it-mobile folder you cloned from GitHub.

b. Type the following into the Terminal window:

cp npm_update_daily.plist ~/Library/LaunchAgents/npm_update_daily.plist

c. The npm_update_daily.plist file you just copied over is a launch agent definition that will kick off at 10:!5AM every morning and call “npm update”. This definition will be picked up the next time you restart your computer.