Richard Bucker

NodeJS servers to support one page aps

Posted at — Apr 13, 2013

I’ve tried a number of NodeJS servers [expressjs, sails, meteor, hapi]. I cannot say that they are all completely different or that they are completely the same. They are what they are.

The documentation and useful examples are another pain point:
  • expressjs the documentation is just barely adequate when supplemented with the code. But then the examples could be better.
  • sails has a great screencast but the documentation is missing some key elements like how to deal with static docs. While you’re likely to figure it out you may feel abandoned.
  • meteor requires a magic decoder ring to make sense of it all. For example “Meteor gathers all your JavaScript files, excluding anything under the client and public subdirectories,…” which suggested that I needed a public folder in order to render a more traditional page.
  • hapi has plenty of words but only covers a fraction of their server. When you install the module you’ll see buckets of modules installed and just not enough to read.
One thing I did not like about meteor is that it did not use NPM.  Not that NPM is without warts but at least it’s consistent.