Skip to content

Install TC API application on Windows

skyhit edited this page Jun 21, 2016 · 6 revisions
  1. Install Visual Studio 2010 or newer.
    a. Visual Studio 2010 Express can be downloaded from
    http://go.microsoft.com/?linkid=9709949
    b. For 64 bit system, follow these steps
    https://github.com/TooTallNate/node-gyp/wiki/Visual-Studio-2010-Setup

  2. Install Oracle JDK 7
    a. Download installation package for your system (either 32 bit or 64 bit) (you have to agree to license agreement first)
    http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
    b. Install in a directory that does not contain spaces. Destination folder for JRE is not important for this guide.

  3. Install TortoiseGit
    a. Download installation package for your system (32 bit or 64 bit)
    https://code.google.com/p/tortoisegit/wiki/Download
    b. Open the downloaded package and follow its instructions, leaving default values
    c. You may need to download and install Git as well
    https://code.google.com/p/msysgit/downloads/list?q=full+installer+official+git

  4. Install Node.js v0.10
    a. Download "Windows Installer (.msi)" (32 bit or 64 bit) from the page
    http://nodejs.org/download/
    b. Open the downloaded package and follow its instructions, leaving default values

  5. Install Python 2 (version 3 is not supported by Node.js)
    a. Download windows installer (32 bit or 64 bit) for Python 2 from the page
    http://www.python.org/getit/
    b. Follow installation instructions
    http://docs.python.org/2.7/using/windows.html#configuring-python

  6. Install OpenSSL
    a. Download installation package (32 bit or 64 bit), not Light version
    http://slproweb.com/products/Win32OpenSSL.html
    b. Open the downloaded package and follow its instructions. Do not change default options, including installation directory.

  7. Download TC API application by right-clicking on directory of your choice and clicking on "Git Clone..."
    a. Input into "URL:"
    git://github.com/cloudspokes/tc-api.git
    b. Choose "Directory:" of your choice
    c. Click OK

  8. Install Java bridge
    a. Open command line by running cmd.exe
    b. Change directory into one you chose in step 7, e.g.
    > cd c:\git\tc_api
    c. Set JAVA_HOME variable to directory you chose in step 2, e.g.
    > set JAVA_HOME=c:\devel\jdk1.7.0_51
    d. Set PATH variable to contain directory \jre\bin\server under directory from step 2, e.g.
    > set PATH=%PATH%;C:\devel\jdk1.7.0_51\jre\bin\server
    e. Run installation
    > npm install java
    f. If you have Visual Studio 2012, run instead
    > npm install java --msvs_version=2012

  9. Install the TC API application
    > npm install

  10. Start server
    a. Apply environment variables
    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.bat
    b. > node_modules\.bin\actionHero.cmd generate
    c. > node_modules\.bin\actionHero.cmd start
    d. If you receive error "Could not reserve enough space for object heap", run
    > set _JAVA_OPTIONS=-Xmx128M

  11. Run tests in different cmd.exe
    a. Open command line by running cmd.exe
    b. Change directory into one you chose in step 7, e.g.
    > cd c:\git\tc_api
    c. Apply environment variables
    > deploy\development.bat
    d. Set PATH variable to contain directory \jre\bin\server under directory from step 2, e.g.
    > set PATH=%PATH%;C:\devel\jdk1.7.0_51\jre\bin\server
    e. Run tests
    > npm test
    f. If you receive error "Could not reserve enough space for object heap", run
    > set _JAVA_OPTIONS=-Xmx128M