Server for the Play GB Client. Lives in the cloud, or locally if you prefer.
You'll need to install redis, and cairo for node-canvas. Then it's just:
$ npm installYou'll also need to set some environment variables:
- ROM_FILE - Location of the Gameboy rom to play
- PORT - Port to serve websockets from, defaults to
8090 - REDIS_URL - Redis URL, defaults to
localhost - REDIS_PORT - Redis port, defaults to
6379
Uses babel for es2015, but no live reloading... To start the dev server, run:
$ npm run devTo bundle everything up, run:
$ npm run buildand serve with:
$ npm run serverConsider using something like pm2 to run in production.