A simple web app for Ping Pong scores. This is a work in progress.
This was build using Node.js(v0.10.10) and MongoDB(v2.4.4).
sudo mongod
To install with a package manager on linux, follow these instructions
cd app
npm install
Just Run...
node app/app.js
You have to have jasmine-node running. To install it run...
npm install jasmine-node -g
Then you can run the tests by turning on the server and run...
jasmine-node spec/
You can also run the tests by using make tests
To use Grunt.JS to run the server or run tests, first run...
npm install -g grunt-cli
First cd into app, then you can do things likegrunt
Which will run jshint and then the mocha tests. Or you can rungrunt testserver
This will watch some of the server files, and if a change happens it will rerun the mocha tests. You can also launch the a server doing: grunt server
These rules are defines in grunt.js
In order to import some data for your dev mongo, run the following:
$ mongoimport --db local --collection players --file players.json
$ mongoimport --db local --collection matches --file matches.json
If you don't do this, then you will have to create players and add games manually.