Presentation videos for each version
Install nodejs and npm:
- On Linux, run
sudo apt install nodejs npm
- On Windows, download NPM online and install it.
Install modules required to run the server apps:
Run this command from the repository folder: npm install express ws express-ws
Or install it globally and create a local link to the global installation:
sudo npm install -g express ws express-ws
sudo npm link express
sudo npm link ws
sudo npm link express-ws
Install node-canvas:
On Linux, you must install dependencies first: sudo apt install libcairo2-dev libjpeg-dev libgif-dev libpango1.0-dev
Run this command from the repository folder: npm install canvas
Or install it globally and create a local link to the global installation:
sudo npm install -g canvas
sudo npm link canvas
Run the game on the server: sudo node server/js/main.js
Open the game from a client: type the server's IP in the address bar of a browser.