Predator-prey game with Node.js
-
Install node.js
-
npm init -f
-
npm install --save jest
Jest pulls many other useful things, like lodash
-
Replace in package.json test value to jest.
-
npm run test
-
to get quick results:
node quick_run.js
-
npm install --save express
-
npm install --save socket.io
-
node server.js
-
Open browser, go to:
localhost:8081
- There Dockerfile from this repo
- docker build . -t predator-prey
- docker run -p 8081:8081 predator-prey
The same image is available here: