Xervo

#middleware

Node.js and Express - Basic Authentication

Node.js and Express - Basic Authentication

Basic authentication can be a quick and efficient way to protect your content. Combined with SSL it’s also very secure. This article describes how to add basic authentication to a Node.js Express application.

Read More

Node.js and Express - Sessions

Node.js and Express - Sessions

Using sessions to keep track of users as they journey through your site is key to any respectable application. Luckily, as usual, using Express with your Node.js application makes it super simple to get sessions up and running.

Read More

Node.js and Express - Serving Static Content

Node.js and Express - Serving Static Content

One of the great things about Node.js is that it has a built in HTTP server. This means you don't need Apache or nginx. This means serving a static site can be done in few lines of code. This article goes into how this can be achieved.

Read More