-
Notifications
You must be signed in to change notification settings - Fork 87
Install TC API application on CentOS 6
skyhit edited this page Jun 21, 2016
·
6 revisions
This guide assumes user is root. If some command needs root access, prepend that command with sudo
.
- Update yum package manager
> yum update
- Install supporting software
> yum install wget curl git
- 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
- Install Node.js v0.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
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
> 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