Skip to content

Install TC API application on CentOS 6

skyhit edited this page Jan 27, 2014 · 6 revisions

This guide assumes user is root. If some command needs root access, prepend that command with sudo .

  1. Update yum package manager
    > yum update
  2. Install supporting software
    > yum install wget curl git
  3. You can either install Oracle JDK or Open JDK
    a. Install Oracle JDK 7 - note the steps differ for 32 bit and 64 bit system
    How to install and setup Oracle JAVA JDK in CentOS 6
    b. Install Open JDK 1.7
    > yum install java-1.7.0-openjdk-devel
  4. Install Node.js
    Installing Node.js via package manager
  5. Download TC API project into home directory
    > git clone git://github.com/cloudspokes/tc-api.git
  6. Change to TC API directory
    > cd tc-api
  7. Install Java bridge
    a. For Oracle JDK (if you took step 3a)
    > export JAVA_HOME=/usr/java/jdk1.7.0_45
    > npm install java
    b. For Open JDK (if you took step 3b)
    > export JAVA_HOME=/usr/lib/jvm/java
  8. Install the TC API application
    > npm install
  9. Apply environment variables (dot followed by space)
    > . deploy/development.sh
  10. Start server
    > npm start
  11. Run tests (press ENTER when the command above finishes)
    > npm test