Content translation/cxserver/Setup

Content Translation Server
If you want to do an anonymous checkout:

Or if you plan to hack CXServer, then please follow the Gerrit 'getting started' docs and use an authenticated checkout url instead, such as:

Node
Install node 0.8 or 0.10. When you are using Debian or Ubuntu and depending on OS version you will not end up with the most recent version of node please read this first before you proceed:

For other systems, see:
 * http://nodejs.org/download/
 * https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

JS dependencies
Install the JS dependencies. Run this command in the cxserver directory:

Configuration
Go to the cxserver folder, copy config.example.js to config.js and edit that file. Then restart the server.

Run the server
You should be able to start the CXServer web service from the cxserver directory using:

This will start the CXServer HTTP service on port 8000. To test it, point your browser to http://localhost:8000/

Debugging
Start the server using

It will open Chrome developer tools with the CXServer source code. You can debug the code just like a web application. You can also edit the code and save from the debugger.