Blog Articles

Handling POST requests with Express and Node.js

Wirtten on 08/15/2016, by Kevin Chisholm | Comments

HTML has featured forms for more than 20 years. Today, the form is still a powerful tool for building web applications. In web applications, users are often prompted to enter data into a form. To make use of that data, the web server must understand how to process it. Popular web server scripting languages include Java, ASP.NET, PHP, Python and Node.js. In this article, we will learn how to...

Read more

Get Over JSON: Implementing Protocol Buffers with Node.js and ProtoBuf.js

Wirtten on 08/10/2016, by Azat Mardan | Comments

There's a better alternative to the ubiquitous JSON as the communication protocol of the web. It's Protocol Buffers (protobuf). In a nutshell, protobuf offers a more dense format (faster processing) and provides data schemas (enforcement of structure and better compatibility with old code). Protocol Buffers were introduced by Google. You can read, more about them at the official Protocol Buffers...

Read more

Getting started with Express, the Node.js web application framework

Wirtten on 08/09/2016, by Kevin Chisholm | Comments

Creating a web-server is a common Node.js project. While the low-level nature of Node can be an asset, it can also be somewhat of a curse. When you are serving static assets, it can be tedious to detect routes, and serve the correct static assets for an entire web page. Examples of static assets are CSS files, images or JavaScript files. Express.js is a Node...

Read more

Look Into the Future: HTTP/2 with Node.js and Express.js

Wirtten on 08/01/2016, by Azat Mardan | Comments

The modern Internet with its TCP/IP protocol started around 1975 which is astonishing 41 years ago. For the most part of its existence, we used HTTP and it's successor HTTP/1.1 (version 1.1) to communicate between clients and servers. It served the web well but the way developers build websites has dramatically ////changed. There are myriads of external resources, images, CSS files, JavaScript...

Read more

Getting Started With The Filepath Node Js Module

Wirtten on 08/01/2016, by Kevin Chisholm | Comments

Sometimes, you need to know where you are. To be specific; sometimes, your Node.js application needs to know things about the folder in which it is. In this article, we will learn how to solve this problem using the filepath node module. To get started, clone the following git hub repository: (Instructions on how...

Read more

Tips For Easy Node Versioning

Wirtten on 07/13/2016, by Aaron Shirk | Comments

It's pretty easy to install and maintain one version of node.js on your system. What happens though when you find that you are developing multiple applications and each requires a different version of node? Depending on your situation, this can quickly become a real pain. In this article we'll look at a couple common ways to manage multiple node versions and you can pick which one works best...

Read more

Map, Filter and Reduce IRL

Wirtten on 07/06/2016, by David Silva | Comments

I've seen several blog posts and articles trying to explain what map, filter and reduce are and praising the advantages of functional programming in JavaScript, however, I still have students and friends that had a hard time understanding or seeing the application; I found that using real examples from a codebase or an application is really easy to get it. For this example application, we...

Read more

Basic web scraping with Node.js and Cheerio.js

Wirtten on 07/01/2016, by Kevin Chisholm | Comments

It makes perfect sense that there are security rules that limit the reach of client-side JavaScript. If you relax any of these rules, the user is open to malicious activity. On the server side, JavaScript is not subject to these kinds of limitations. With this freedom comes a great deal of power. Web scraping is one of the cool upsides to this freedom. To get started, clone the following git hub...

Read more

Schema Validation With Joi

Wirtten on 06/28/2016, by Zack Liston | Comments

Schema Validation With Joi Motivation Validation is much like testing. Many programmers avoid it because it adds development time and is not strictly necessary for project completion; however, its long term benefits are indisputable. The number one use case for schema validation in Node is persisting data. Many Node applications rely on a document-oriented, dynamic-schema databases such MongoDB....

Read more

Express Apps Part 2

Wirtten on 06/27/2016, by Michael Benin | Comments

This is Part 2 of my express.js security blog post. Like any application, developers should make sure their express.js applications are secure and resilient to errors. In this post, I’ll go over some Npm packages that I have battle-tested in production. These are libraries I’ve used with success in securing my express.js applications. By default, Express adds the x-powered-by header, which can...

Read more