dpca / play-gb-server

Server for play-gb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Server for play-gb

License:MIT License


Languages

Language:JavaScript 100.0%