- Install the latest version of NodeJS (5.5.0 as of
this writing). Test your Node installation by running the following
terminal commands:
node -v
npm -v
It should output your installed versions of NodeJS and NPM (the NodeJS package manager). - Clone this repository and
cd
into it. - From the project directory, install all dependencies with this command:
npm install
The dependency files are not included in the repository, so re-run this command if the dependencies change. (To remove unused dependencies, usenpm prune
.) - To run the game in development mode:
npm test
This will restart the server and recompile the game source code whenever a.js
file changes. Recompiling the source can take a few seconds. - Navigate to http://localhost:3000 to test the game.
- To play the game in your browser: http://cleanupinsector4.herokuapp.com/
- To run the game in non-development mode:
npm start