Skip to content

yxu83/cmpm120-project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMPM 120 Project

UCSC CMPM 120 Phaser Multiplayer Game

Team

Links

Sever

Ubuntu NodeJS 10.0 on 16.04

1 GB Memory / 25 GB Disk / SFO2

Getting Started

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.

Installing

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

Start the server

To start the testing locally, simply use node

node main.js

And you you can go to http://localhost:8080

Code Style

We will use ESLint.

Run to test code consistency:

npm run test

Deployment

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

Built With

  • Socket.io - Realtime application framework (Node.JS server)
  • Express - Fast, unopinionated, minimalist web framework for node.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

💎 An HTML5 Multiplayer game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.1%
  • HTML 33.9%