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
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://
.
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
.
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.
Libraries used:
Same license as PS' client (AGPL).