Skip to content

Commit

Permalink
Merge branch 'master' of github.com:aliasaria/scrumblr
Browse files Browse the repository at this point in the history
  • Loading branch information
aliasaria committed Dec 7, 2013
2 parents fc924d7 + 0bfd9fb commit d42a024
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.markdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ 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) how to install and run on your own computer (linux/osx)
------------------------------------------------------- -------------------------------------------------------


- install redis v2.2.2 - [install redis v2.2.2](http://redis.io/download)
- install node.js >= 0.4.7 - [install node.js >= 0.4.7](http://nodejs.org/)
- install npm - 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` - 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 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 license
------- -------
Expand Down
19 changes: 19 additions & 0 deletions lib/data/mongodb.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -150,6 +150,25 @@ db.prototype = {
{name:room}, {name:room},
{$set:doc} {$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; exports.db = db;

0 comments on commit d42a024

Please sign in to comment.