- Node.js (http://nodejs.org/) of course
- NPM (http://npmjs.org/) to easily install packages for node.
- Express (http://expressjs.com/) – a very nice web development framework built on connect (allows “controllers”)
- Mongoose (http://mongoosejs.com/) – a solid orm for mongodb in node.js that just released a much improved version (allows “models”)
- Jade (http://jade-lang.com/) – a template engine for node that allows some cool shorthand (allows “views”)
- Other tools were used of course but those were the essentials.
The application directory looks something like this:
1 2 3 4 5 6 7 8 9 10
/app-root /models /views /controllers /public /tests /scripts /logs /tmp app.js
Inside the application I instantiate express, include my mongoose models and include my routes/controllers from the controllers directory at the bottom. Inside the controllers I call res.render to render the jade views and it all works very nicely. If people would like me to elaborate on this more let me know.
A huge shoutout and thank you to the LearnBoost guys (TJ Holowaychuk, Guillermo Rauch, Aaron Heckmann, and many more that aren’t associated with LearnBoost) who’ve made Node.js web application development a breeze.