-
Notifications
You must be signed in to change notification settings - Fork 87
Install TC API application on Ubuntu
skyhit edited this page Jun 21, 2016
·
5 revisions
- Update the package manager
> sudo apt-get update
- Install git
> sudo apt-get install git-core
- 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
- Install Node.js 0.10
Installing Node.js via package manager - Download TC API project into home directory
> git clone git://github.com/cloudspokes/tc-api.git
- Change to TC API directory
> cd tc-api
- 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
- Install the TC API application
> npm install
- 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
- Start server
> npm start
- Run tests (press ENTER when the command above finishes)
> npm test