From 5efc8b489c1dcf627d77898a1972a2fc27701d75 Mon Sep 17 00:00:00 2001 From: giacomomacri Date: Tue, 3 Jan 2012 20:04:45 +0100 Subject: [PATCH 1/3] add setter and getter for boardsize also for mongodb --- lib/data/mongodb.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/data/mongodb.js b/lib/data/mongodb.js index d37a6e1..59b357c 100644 --- a/lib/data/mongodb.js +++ b/lib/data/mongodb.js @@ -150,6 +150,25 @@ db.prototype = { {name:room}, {$set:doc} ); + }, + getBoardSize: function(room, callback) { + this.rooms.findOne( + {name:room}, + function(err, room) { + if(room) { + callback(room.size); + } else { + callback(); + } + } + ); + }, + setBoardSize: function(room, size) { + this.room.findOne({name:room}) + this.rooms.update( + {name:room}, + {$set:{'size':size}} + ); } }; exports.db = db; From ef7a31cf367dd2723c6f532665b9a69b291a8988 Mon Sep 17 00:00:00 2001 From: morizono Date: Tue, 7 Feb 2012 12:09:50 -0500 Subject: [PATCH 2/3] Added the step "cd into scrumblr distribution directory." Added a workaround line for express in package.json Added line about firewall b/c the person I set up scrumblr for knew enough to compile software, but not about modifying firewalls. --- README.markdown | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index eb4528c..bbb78e5 100644 --- a/README.markdown +++ b/README.markdown @@ -41,11 +41,13 @@ how to install and run on your own computer (linux/osx) - install redis v2.2.2 - install node.js >= 0.4.7 -- install npm +- install npm +- cd to the scrumblr directory; you should see server.js and config.js and other files. - run `npm install` +- If you get errors about express, you may need to change in package.json to have "express": ">=2.4.x", - run redis `redis-server` -- run scrumblr `node server.js 80` where "80" is the port you want it to run on. - +- run scrumblr `node server.js 80` where "80" is the port you have opened in your firewall and want scrumblr to run on. +- open a browser to `http://localhost:80` where "80" is the port you chose in the previous step. license ------- From 8494cda284d9cb4bdc30510f63ef77acdb51002d Mon Sep 17 00:00:00 2001 From: Ned Kahvo Date: Thu, 30 Aug 2012 15:55:42 -0400 Subject: [PATCH 3/3] updating the README with link to dependencies, fixes missing line break before license --- README.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index bbb78e5..0c461a0 100644 --- a/README.markdown +++ b/README.markdown @@ -39,15 +39,16 @@ my goal was to avoid buttons and ui (almost everything is edit in place or dragg how to install and run on your own computer (linux/osx) ------------------------------------------------------- -- install redis v2.2.2 -- install node.js >= 0.4.7 -- install npm +- [install redis v2.2.2](http://redis.io/download) +- [install node.js >= 0.4.7](http://nodejs.org/) +- install npm (if you're running node.js [v0.6.3](https://github.com/joyent/node/commit/b159c6) or newer it's already installed!) - cd to the scrumblr directory; you should see server.js and config.js and other files. - run `npm install` - If you get errors about express, you may need to change in package.json to have "express": ">=2.4.x", - run redis `redis-server` - run scrumblr `node server.js 80` where "80" is the port you have opened in your firewall and want scrumblr to run on. - open a browser to `http://localhost:80` where "80" is the port you chose in the previous step. + license -------