Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Install TC API application on Mac OS X 10.7.3 (Lion) or later

skyhit edited this page Jan 27, 2014 · 7 revisions
  1. Install Oracle JDK 7
    a. Download installation package (you have to agree to license agreement first)
    http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
    b. Follow instructions for installation
    http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html

  2. Install Git
    a. Download installation package (download will start immediately)
    http://git-scm.com/download/mac
    b. Open the downloaded package and then open README.txt for installation instructions

  3. Install Node.js
    a. Download “Macintosh Installer” from the page
    http://nodejs.org/download/
    b. Open the downloaded package and follow its instructions

  4. Download TC API project into home directory
    > git clone git://github.com/cloudspokes/tc-api.git

  5. Change to TC API directory
    > cd tc-api

  6. Install Java bridge
    a. For Mac OS X version Mavericks it may be necessary to run
    > export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/
    b. Run installation
    > npm install java

  7. Install the TC API application
    > npm install

  8. Apply environment variables (dot followed by space)
    > . deploy/development.sh

  9. Start server
    > npm start

  10. Run tests (press ENTER when the command above finishes)
    > npm test

Clone this wiki locally