Skip to content

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

skyhit edited this page Jun 21, 2016 · 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 v0.10
    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
    Please update the path for JDK Home, based on your environment installation. > export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_xx.jdk/Contents/Home/
    b. Run installation
    > npm install java

  7. Install the TC API application
    > npm install Note: Incase of Mac OSX if > npm install fails and you get errors related to header files "conio", "cstdio" etc not found. Command line tool may not have been installed. To do so, go to your terminal and execute xcode-select --install and install the software. Run npm install again to check if it works. Refer to the pull request for more information.

  8. Apply environment variables (dot followed by space)
    Before that please config the ip address correctly to the VM assigned to you with informix database installed.Please check Configure Environment Variables for detail guide
    > . deploy/development.sh

  9. Start server
    > npm start

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