Full Stack Node.JS - Part 1
Today I finished Peepcode’s Full-Stack Node.JS Part 1. The tutorial walks through setting up a hypothetical bakery web-app, while covering the following topics:
- Using Node.JS with the Express framework and Jade template engine
- Using mini-apps to build a larger application
- Coding with CoffeeScript
- Writing and using modules
- Writing full-stack integration tests with the Mocha test framework
- Using Redis for sessions
- Interpreting errors
- Development workflow
- View helpers
The tutorial is a great supplement to my work in the Dynamic Web Development class at ITP. Here’s a couple things I picked up going through the tutorial:
Organizing routes into individualized “mini-app” directories is more precise and manageable than keeping everything in my server.js file.
I should also note 2 spaces is equal to 1 indent for both CoffeeScript and Jade. This can be easily set in Sublime Text 2 in View > Indentation > Tab Size.
Standard helpers and dynamic helpers are explained well, from setting up the templates to the routes.
It was very helpful to build another webapp from the ground up and with the guidance of such a thoughtful walkthrough. I have already ordered Full-Stack Node.JS Part 2, and I will start tomorrow.