Reversed engineered server for RACER: The Chrome Experiment
Re-hosting the official client may be against Google's license. We are not responsible for any damages caused.
The server runs on HTTPS + WSS, so you need to create an SSL certificate and key using the following commands:
mkdir ssl
cd ssl
openssl req -nodes -new -x509 -keyout server.key -out server.cert
Rename config.example.json
to config.json
and edit as necessary.
Start the server by running:
npm install
npm start
As we need the official client which can be assumed non-redistributable, we use a downloader script to download (and prettify) the client straight from Google's servers:
# For prettification of minified source
sudo npm install -g prettier
./download_client.sh
This will create a client
folder in your repo. Open client/assets/js/racer.js
and replace lines containing <server_ip>:<server_port>
with the corresponding values from config.json
. Save and connect to the client via https://<server_ip>:<server_port>/racer/