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 install
You'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 dev
To bundle everything up, run:
$ npm run build
and serve with:
$ npm run server
Consider using something like pm2 to run in production.