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:

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

On Ubuntu Server 12.04 LTS instead do (to get v0.10.x) :

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:

Server 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.