mongoDB (from "humongous") is a cross-platform document-oriented database.

Database
Table
Column
Row
Primary Key
Database
Collection
Field
Document
Primary Key (default: _id)
> mongod
all output going to:
/usr/local/var/log/mongodb/mongo.log> mongo
MongoDB shell version: 2.4.9
connecting to: test
>
To avoid full collection scan for a query, ensure indices of fields you are likely to use



Functions
User interface
Mocha is a feature-rich JavaScript test framework running on node.js and the browser, making asynchronous testing simple and fun.
$ npm install -g mochadescribe('###Test Description###', function(){
describe('###Detailed Test Description###', function(){
it('should ###do stuff###', function(){
//assert stuff using
//third party assert library
})
})
})test/test.js
$ mochadescribe('###Test Description###', function(){
describe('###Detailed Test Description###', function(){
it('should ###do stuff###', function(done){
//assert stuff using
//third party assert library
done();
})
})
})Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.

var expect = require('chai').expect;
var request = require('request');
describe('Complete webapp', function(){
before(function(done){
request('http://localhost:3000/logout', function(err, res, body){
expect(err).to.not.exist;
done();
});
});
it('should load the start page successfully', function(done){
request('http://localhost:3000', function(err, res, body){
expect(err).to.not.exist;
expect(res.statusCode).to.equal(200);
done();
});
});
});
new Nightmare()
.goto('http://yahoo.com')
.type('input[title="Search"]', 'github nightmare')
.click('.searchsubmit')
.run();
The JavaScript Task Runner
$ npm install -g grunt-cli
$ npm install grunt --save-devmodule.exports = function(grunt) {
grunt.initConfig({
jshint: {
files: ['package.json', 'Gruntfile.js', 'routes/*.js'],
options: {
// options here to override JSHint defaults
globals: {
jQuery: true,
console: true,
module: true,
document: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('test', ['jshint']);
}