Skip to content

dpca/play-gb

Repository files navigation

Code Climate


Play GB Client

Play Gameboy in the cloud! With other humans!

Inspired by Twitch plays Pokémon and weplay, but mostly created as a project to learn redux.

Installation

Basically:

$ npm install

You also need to run the Play GB Server, and set some environment variables:

  • TITLE - The title of your page, defaults to Play Pokémon
  • SERVER_URI - URI of the Play GB Server, defaults to localhost:8090

Development

Uses webpack and babel for awesomeness like es2015 and live reloading. To start the dev server, run:

$ npm run dev

and navigate to http://localhost:8080/webpack-dev-server/

Deploy

To bundle everything for production use, run:

$ npm run build

Everything should now be bundled up nicely in dist/bundle.js, and loaded by dist/index.html.

To set the above environment variables, you can use webpack's DefinePlugin by altering webpack.config.production.js. Change the plugins section to include something like:

new Webpack.DefinePlugin({
  'process.env': {
    TITLE: JSON.stringify('Play Pokémon!'),
    SERVER_URI: JSON.stringify('localhost:8090')
  }
})

About

Super simple Twitch plays * clone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published