Page History
Instructions for installing LexEVS 6.x CTS2 Documentation API Service.
- The installation directory can be anywhere.
...
- The name of the install directory will be "cts2Docs".
- The path to the install directory will be referred to as "<path to install dir>"
Access to other Systems
- This server needs to be able to access the CTS2 service located here: http://lexevs62cts2.nci.nih.gov/lexevscts2
Step-by-step installation guide
...
Clone git repository
- git clone https://github.com/cts2/lexevs-service-rest-docs.git
- This will create a project under <path to install dir>/cts2Docs/lexevs-service-rest-docs
Install Node.js
- Download Node.js (linux 64 bit) (v0.10.35) to <path to install dir>/cts2Docs
- File download location: nodejs.org/dist/v0.10.35/node-v0.10.35-linux-x64.tar.gz
- Unzip the file node-v0.10.35-linux-x64.tar.gz in <path to install dir>/cts2Docs
- tar -vxzf node-v0.10.35-linux-x64.tar.gz
- Add an environment variable for NPM
export NPM_HOME=<path to install dir>/cts2Docs/node-v0.10.35-linux-x64
export PATH=${PATH}:$NPM_HOME/bin
- Update the port that node.js runs on (OPTIONAL step)
- Edit this file: <path to install dir>/cts2Docs/lexevs-service-rest-docs/config.json
- the The "port" parameter is set to 3000 by default. It can be changed as needed. This port used by the end URL to get to the CTS2 API Documentation: (http://<server_name>:port)
...
- Download Redis version 2.8.19 to <path to install dir>/cts2Docs
- File download location: https://github.com/antirez/redis/archive/2.8.19.tar.gz
- Unzip the file redis-2.8.19.tar.gz in <path to install dir>/cts2Docs
- tar -vxzf redis-2.8.19.tar.gz
- Build redis
- cd <path to install dir>/cts2Docs/redis-2.8.19
- make
Install Directory File Structure
At this point the install directory should have the following structure:
- cts2Docs
- lexevs-service-rest-docs
- node-v0.10.35-linux-x64
- redis-2.8.19
Change Directory permissions
...
- Start the redis server
- nohup <path to install dir>/cts2Docs/redis-2.8.19/src/redis-server &
- By default, redis is running on port 6379
- Start the Node.js server
- nohup cd <path to install dir>/cts2Docs/lexevs-service-rest-docs
- nohup npm start &
- node.js is set to run on port 3000 by default.
...