P4ng is a 4 player off and online version of the classic pong game by Team JaEGT.
Notice :
We use a MongoDb database for test and server.
Make sure that you run it before running
Clone this repository :
$ git clone https://github.com/jy95/P4ng.git
Install with npm
$ npm install --production
You have two possibilities to install the client.
Choose the preferred way
First step : Install the electron-packager
$ npm install electron-packager -g
Second step : Run the script :
$ npm run packagerApp
This script is designed to work on Windows 32 bits
If you wish to change for your OS or architecture,
Change line 95 in scripts/packager-script.js to yours
https://github.com/electron-userland/electron-packager for more details
Last step : Run it :
Example from Windows CMD
<path/to/packagedClient>/P4ng.exe
Simply run this :
$ npm run startClient
Simply run this :
$ npm run startServer
Worry about the project stability ? Just use the tests
NB : Only server tests
Install dev dependencies:
$ npm install --only=dev
Run the test :
$ npm test
The tests are written in Mocha
Fun and simple :)
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Still never believe the crazy monkey ,known as an programmer, makes always a perfect commit ?
This section is for you.
As previously told , We use Mocha for testing.
The choice for local coverage is Istanbul because It works fine with Mocha and in addiction to work with our Coveralls
If you wish to check your coverage locally :
$ npm run cover
If you wish to check your coverage after a build on Travis-CI , add this in your .travis.yml file :
The dropDatabase line exists because Travis-CI runs npm test before this command
after_success:
- mongo P4ngDb --eval "db.dropDatabase()"
- npm run coveralls
Jacques
Emilien
Gaël
Theodor
Copyright © 2016 Team JaEGT Licensed under the MIT license.