Getting Started with Expressjs

Getting Started with Expressjs

This post is targeted at Express 3.x and *nix system, however the concepts are same across all OS for Express 3.x.

Windows users, please refer to the comment by acveer.

Once you are done with post, you can refer this post to see what has changed in Express 4.x

You can use Slush Express Generator to scaffold an Express 4 app, to be consistent across OS.

Express js

Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.

Expressjs is a server side framework, that takes care of handling requests and responses. It can use templating engines like Hogan (derived from HandleBars), Jade, ejs or CSS preprocessors like LESS, Stylus.

If you have worked with any web based Node projects earlier you must have seen a lot of them would be using Express. Because that is what Expres does to your Node app.


Continue reading

Test Driven Development by Example

Test Driven Development by Example

In an earlier post, we have seen how to setup a framework/workspace that can be helpful to write easily testable Javascript code. Now we will dive into writing some code with the TDD approach. So lets get started.

Table of Contents

T.D.D. – Test Driven Development

Part 1 : Understand what TDD is all about. I ran into this amazing video by Rebecca Murphy. Where she explains as how Testable javascript needs to be written

A few excerpts from her presentation

Continue reading