By following the instructions here http://howtonode.org/how-to-install-nodejs
$ git clone [email protected]:bnowel/NodeWorld.git
$ cd NodeWorld
$ npm install
$ node main.js
visit http://0.0.0.0:3000 in your browser
Please update these intructions if you find an error
$ git clone [email protected]:<your github username>/NodeWorld.git
$ cd NodeWorld
$ git remote add upstream [email protected]:bnowel/NodeWorld.git
$ git fetch upstream
Follow the instructions here http://howtonode.org/how-to-install-nodejs
If you have OSX with home brew installed you can install node with the following command:
$ brew install node
$ npm install
mocha - simple, flexible, fun javascript test framework for node.js & the browser. (BDD, TDD, QUnit styles via interfaces) — Read more at http://visionmedia.github.com/mocha
Install mocha for this project only:
$ npm install --dev
Install mocha globally with npm:
$ npm install -g mocha
To start using mocha
$ mocha -w
Running tests:
$ npm test
Pick a feature from the issues page https://github.com/bnowel/NodeWorld/issues or come up with your own new feature.
$ git branch master
$ git fetch upstream
$ git merge upstream/master
$ git checkout -b fooBarFeature
Create the auto running test for cloud9
$ vim static/js/fooBar/fooBar_test.js
This file should only contain two lines
require('../../../test/c9test');
require('../../../test/test.fooBar');
Create the actual test file
$ vim static/js/fooBar_test.js
An example of of a test suite
var assert = require('assert'),
fooBar = require('./../static/js/fooBar/fooBar');
suite('fooBar', function() {
test('fooBar Instantiation', function() {
var fooBar = fooBar();
assert.ok(fooBar instanceof fooBar, "Make new object even if not called with new.");
var fooBar2 = new fooBar();
assert.ok(fooBar2 instanceof fooBar, "Make new object like we're supposed to.");
});
});
$ git commit -am "wrote unit tests for fooBar feature"
$ vim static/js/fooBar/fooBar.js
$ git commit -am "started fooBar feature"
Once your feature is tested and working merge any new upstream changes in and resolve any conflicts
$ git fetch upstream
$ git merge upstream/master
$ git diff
$ git push origin fooBarFeature
visit github, navigate to your fooBarFeature branch and click on "Pull Request"
Have a bug? Please create an issue here on GitHub!
https://github.com/bnowel/NodeWorld/issues
Have a question? Ask on our mailing list!
http://groups.google.com/group/slohacktime
Bernie Nowel
Blake Davis
Clint Parker
Christopher Smeder
Pallavi Pershey
Roberto Iraheta
Copyright (c) 2012 Bernie Nowel. NodeWorld is Licensed and distributed under the terms of the MIT License. See LICENSE.txt for further details.