Webclient for pokemon online
JavaScript CSS HTML Other
Latest commit 720a3bc Dec 19, 2016 @coyotte508 coyotte508 committed on GitHub Merge pull request #147 from mortonfox/patch-1
Update Mocha link
Permalink
Failed to load latest commit information.
css
images
js
libs
scripts
test
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
README.md
battle.html
index.html
package.json
teambuilder.html
testbattle.html
user_params.html

README.md

Webclient for Pokémon Online

Build Status

It connects to a relay station, which in turns connects to a PO server. If you want multiple webclients to be able to connect to your server through a relay station, you'd better add the relay station to the proxy servers in your server config.

The host of the official PO relay station is ws://server.pokemon-online.eu:10508

Testing

Thanks to github pages you can test the current repository with this url: http://po-devs.github.io/webclient/

Add the query parameter 'user' to automatically have your username set up, or 'server' to use a different server than PO's main server.

If you're cloning this repository, test locally with Firefox, as Chrome blocks some features when dealing with file://.

Test suite

This uses Mocha to run tests. Those tests are run for each commit on the Travis-CI platform (check out the build icon!).

If you want to run them manually, have Node.js installed and type npm test in a terminal. If you haven't installed Mocha yet, do that first (after you install node): npm install.

Tasks

Grunt is used to run a few (build) tasks. Currently, only grunt-autoprefixer is used, which "parses CSS and add vendor prefixes to CSS rules using values from the Can I Use.".

First, you will need grunt-cli installed globally. For that, you will need node/npm. Run npm install grunt-cli -g in a terminal to install it. The grunt tasks are bundled as devDependencies, so an npm install will do the trick.

Then finally type grunt in a terminal, it will do all the work for you.

Info

Libraries used:

License

Same license as PS' client (AGPL).