Helping you solve those tough coding problems!
Learn some great web development and web design tips and techniques through recipes that clearly define the problem being solved with a working solution.
Popular Tags: cakephp | theory | optimization | javascript-development | asp-net | css | jquery-development | sql | ajax | php-development

Search:
Follow @endyourif rss Facebook LinkedIn

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

Published on Jul 14, 2019 by Jamie Munro

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.

Read more >

Tags: Node.js | node | express | jade

Node.js as a background service Node.js as a background service

Published on Jul 6, 2019 by Jamie Munro

When you are developing and testing your application, it's ok to constantly start the Node.js server; however, once you've finished or you are trying to setup a production web server you want the Node.js service to always be running in the background. Let's explore the variety of ways to accomplish this.

Read more >

Tags: Node.js | node | service

Can't set headers after they are sent Can't set headers after they are sent

Published on Mar 23, 2019 by Jamie Munro

When you are using Node.js with Express and you've received the dreaded "Can't set headers after they are sent" where do you even begin. This article will explore common causes of this error, such as calling res.writeHead, res.write, or res.redirect.

Read more >

Tags: Node.js | node | express

2012 Year in Review 2012 Year in Review

Published on Dec 21, 2012 by Jamie Munro

Wow!  I can’t believe 2013 is coming.  It seriously feels just the other day when I sat down and wrote my 2011 year in review

Thinking back, 2012 is probably a more average year.  I don’t feel like anything new and major really happened in the industry that I was a part of.  However, in my personal life, I welcomed my third child in late October – hence the lack of website updates since I’ve been extremely busy with my growing family.

Read more >

Tags: Theory | node | AJAX

Node.js Versus Nginx: Bare Bones Test Node.js Versus Nginx: Bare Bones Test

Published on Dec 4, 2012 by Jamie Munro

This is a quick follow up to yesterday’s post on Node.js Versus Apache2: Bare Bones Test where I performed a straight HTML test of Node.js versus Apache.  With my recent switch to Nginx, I thought it prudent to perform this exact same test swapping out Apache for Nginx.  The results are much more interesting to yesterday’s since there is no total destruction (sorry for the spoiler if you didn’t read yesterday’s article).

Read more >

Tags: Optimization | speed comparison | nginx | Theory | JavaScript | node | apache

Node.js Versus Apache2: Bare Bones Test Node.js Versus Apache2: Bare Bones Test

Published on Dec 3, 2012 by Jamie Munro

Node.js – Ajax Pagination without the Pages Node.js – Ajax Pagination without the Pages

Published on Oct 15, 2012 by Jamie Munro

Node using Jade Templates with Express Node using Jade Templates with Express

Published on Oct 8, 2012 by Jamie Munro

My First Node Application My First Node Application

Published on Oct 4, 2012 by Jamie Munro