Twitter About Home

Node.js development with WebMatrix 2 + Express (Part 2)

This is the second in a three-part series of videos about building a mobile web app with Node.js, Express, and WebMatrix:

Published Jul 10, 2012
  1. Getting started with Node and Express using WebMatrix 2 — 12 minutes
  2. (This post) Building a web app with static UI / dynamic API architecture — 20 minutes
  3. Hints and tricks for optimising for mobiles — 14 minutes

In this second video, we build on the Node.js + Express skills learned in the first video, and create a fun social web app that demonstrates how you can totally separate your application’s UI from its underlying API by using Express’s ability to mount one application inside another. This isn’t only about keeping your code tidy: it also enables some dramatic performance benefits, as you’ll see in Part 3, and means you could easily attach multiple UI technologies to the same underlying backend.

OK, here’s the video. Be sure to watch it full-screen in 720p quality, by the way, for the most readable code…

Want to download the code?

If you want to get a closer look at the code created in this tutorial, you can download the version corresponding to the end of part 2, or <a href=”” onclick=”javascript:_gaq.push([‘_trackEvent’,’outbound-article’,’’]);” target=_blank>browse the whole source repo on GitHub</a>.


Node.js development with WebMatrix 2 and Express

I’m sure by now everyone has heard plenty about Node.js, the lightweight JavaScript-on-the-server web platform. But maybe you’ve been putting off trying it out because it’s unclear what exactly to download and install on Windows to get the best development experience.

Published Jul 9, 2012