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 Windows

skyhit edited this page Jan 30, 2014 · 6 revisions
  1. Install Visual Studio 2010 or newer. Visual Studio 2010 Express can be downloaded from
    http://go.microsoft.com/?linkid=9709949

  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
    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 Cone..."
    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
    > node_modules\.bin\actionHero.cmd generate
    > node_modules\.bin\actionHero.cmd start

  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