Bla bla cool game - play it on a computer or phone...
Well, it ain't. But it uses socket.io
and express
to run a node.js web server with websockets communication.
For the web-part, it uses ES6-compliant angular
and jade
.
Please tell me oh great one, how do I, a simple dimwit, run your cool shit?
- Node (https://nodejs.org/en/)
- NPM (Comes with nodejs, but remember to
npm install npm -g
) - A proper browser, supporting most ES6 constructions (see https://kangax.github.io/compat-table/es6/)
- Install dependencies:
npm install
- Start the server:
npm start
(this will automatically reload every time index.js is changed)
- If you haven't already, start a local server (see above)
- Run
npm run watch
- Open web-client in a new tab (Default: http://localhost:5000/)
git remote add heroku git@heroku.com:[project-name].git
git push heroku