Skip to content

Install TC API application on Ubuntu

skyhit edited this page Jun 21, 2016 · 5 revisions
  1. Update the package manager
    > sudo apt-get update
  2. Install git
    > sudo apt-get install git-core
  3. You can either install Oracle JDK or Open JDK
    a. Install Oracle JDK 7 Install Oracle Java 7 in Ubuntu via PPA Repository
    b. Install Open JDK 1.7
    > sudo apt-get install openjdk-7-jdk
  4. Install Node.js 0.10
    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
    > export JAVA_HOME=/usr/lib/jvm/<jdk_of_choice>
    For example, <jdk_of_choice> can be java-7-oracle if you followed step 3.a. You can set it to your .bashrc file, so it will be available, all the time.
    > npm install java
  8. Install the TC API application
    > npm install
  9. 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
  10. Start server
    > npm start
  11. Run tests (press ENTER when the command above finishes)
    > npm test