UCSC CMPM 120 Phaser Multiplayer Game
- Ivan Xu (yxu83) - RaiderSoap
- Julio Choy - svntax
- David Kirkpatrick
Ubuntu NodeJS 10.0 on 16.04
1 GB Memory / 25 GB Disk / SFO2
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
A step by step series of examples that tell you have to get a development env running
Say what the step will be
git clone https://github.com/RaiderSoap/cmpm120-project.git myProject
cd myProject
And install dependencies
npm install
To start the testing locally, simply use node
node main.js
And you you can go to http://localhost:8080
We will use ESLint.
Run to test code consistency:
npm run test
Once you have commited and pushed to this repository
Login into our server, as user game
first we need to pull from GitHub,
cd /home/game/project
git pull
Then start the game application (only if the game is not work as expected):
pm2 start game // game is an task I already defined
To list all running processes:
pm2 list
Managing processes is straightforward:
pm2 stop <game|'all'>
pm2 restart <game|'all'>
To monitor logs, custom metrics, process information:
pm2 monit
- Socket.io - Realtime application framework (Node.JS server)
- Express - Fast, unopinionated, minimalist web framework for node.
This project is licensed under the MIT License - see the LICENSE.md file for details