- Install the latest Node.js (v8 and up) from https://nodejs.org/en/.
- Run
npm install
from a terminal window, with the working directory set to the project's folder.
The project needs to be preprocessed. To do this, run npm run build
from a terminal window. After doing this, you can open index.html.
Alternatively, use npm run watch
to continually monitor the source for changes and build automatically.
ESLint has been set up to check the code for errors. To run it, execute npm run lint
from a terminal window.
Run npm run start
to run the development server on port 8000. Point your browser to http://localhost:8000/ to run the game.
The code will be watched for changes and rebuilt automatically.
You can override the port number using the PORT env variable, e.g. PORT=9001 npm run start
.