Follow @endyourif rss Facebook LinkedIn

Setup routes in Node.js with Express.js and Jade with controllers, models, and views

Published on Jul 14, 2019

I like the structure of Model View Controller (MVC) and I wanted to apply it to my Node.js projects.

I've written previous articles about Node using Jade Templates with Express, but I didn't go into much details about code organization; let's do that now.

Node using Jade Templates with Express

Published on Oct 8, 2012

After my first article on Node - My First Node Application I setup and installed the Node server as well as the Express add-on package. In today's article, I'm going to expand on that by creating actual output. In my research and comparison, Jade templates look quite nice.

Let's be honest, anything that can simplify the mundane typing of HTML code and let me output my content faster is a win-win in my books!

Let's get started.