This is a multi-player online game built with MelonJS, Canvas, Node, and React.
The servers are built with webpack with the following command:
$$ > cd servers && npm install && npm run build
or, if you've already installed the dependencies
$$ > cd servers && npm run build
this will generate all the servers in the bin
directory.
Servers should be booted in the following order:
- Login Server
- Game Server
- Map Server
each server has a variety of parameters specify ports, hosts, etc. The defaults currently allow you to just run
$$ > cd servers && node ./bin/the-server-to-start.js
The client is ran with webpack by the following command
$$ > cd client && npm install && npm start
or, if you've already installed the dependencies
$$ > cd client && npm start
there currently isn't a build process available yet to serve on the web.
Unit tests can be ran by
$$ > cd client && npm run test