P4ng

Pong game - Team jaegt

MIT License

Stars
1

P4ng Build Status Coveralls branch Dependency Status Dev Dependency Status License: MIT

P4ng is a 4 player off and online version of the classic pong game by Team JaEGT.

Install

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

Client Installation

You have two possibilities to install the client. Choose the preferred way

Electron packaged client

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

Electron unpackaged client

Simply run this :

$ npm run startClient

Server Installation

Simply run this :

$ npm run startServer

Running tests

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 :)

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Code Coverage

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

Team JaEGT members

Jacques

Emilien

Gal

Theodor

License

Copyright 2016 Team JaEGT Licensed under the MIT license.