Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.03 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.03 KB

Code Climate


Play GB Server

Server for the Play GB Client. Lives in the cloud, or locally if you prefer.

Installation

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

Development

Uses babel for es2015, but no live reloading... To start the dev server, run:

$ npm run dev

Deploy

To bundle everything up, run:

$ npm run build

and serve with:

$ npm run server

Consider using something like pm2 to run in production.