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

Install TC API application on Ubuntu

skyhit edited this page Jan 27, 2014 · 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
    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)
    > . deploy/development.sh
  10. Start server
    > npm start
  11. Run tests (press ENTER when the command above finishes)
    > npm test