Page 2 of Node.js Articles

Upgrade to Node.js 10.x or 11.x on Ubuntu 18.10

The latest and greatest, albeit not a long-term support release, from Canonical is here! Ubuntu 18.10, Cosmic Cuttlefish, was released this month and shipped with the current LTS version of Node.js, version 8. Actually, it’s a minor revision behind at the moment with 8.11.x being what’s available. Not that there’s […]

Speed up your shell prompt when using Node Version Manager

I absolutely hate using version managers like nvm and rvm. These days I don’t run any project session management like tmuxinator and tend to forget that I need to be switching Node.js versions depending on the project I am on. I know, I know… I really should get back to […]

Unique indexes with MongoDB and Mongoose

Even though I’ve been using MongoDB for the last few years, I’m still very much a noob when it comes to a lot of things. One of those things would be unique indexes. Generally speak, I interact with MongoDB three different ways: I write code that explicitly creates something with […]

How to POST to a webhook in 5 different programming languages

With the release of inbound webhooks for CrowdSync workflows last week, it seemed fitting to do a write up on how to POST to a webhook. So what is a webhook, anyway? The Wikipedia definition is that webhooks are “used-defined HTTP callbacks”. Kind of a stuffy definition if you ask […]

How to install Node.js 10 on Ubuntu 18.04 LTS

Two days before Canonical dropped the latest and greatest long term service release of Ubuntu, the Node.js Foundation dropped the latest and greatest (and eventually long term service release) of Node.js. Due to the timing of things, Ubuntu 18.04 LTS was shipped with the current long term service release of […]

How to install the latest version of Node.js 8 on Ubuntu 18.04 LTS

Right on schedule, Canonical has released the latest long term service release of Ubuntu, version 18.04. This particular release is shipping with Node.js 8 which is the current long term service release of Node.js. Unfortunately, the version which shipped (8.10.0) is already a bit behind the latest version, 8.11.1 (at […]

Upgrade to Node.js 8.x on Debian and Ubuntu

Not too long ago I wrote a post on how to upgrade to Node.js 8.x on Ubuntu 17.10. Post has done well but it’s generated quite a few inquiries on if it would work on other versions of Ubuntu, specifically LTS versions. This guide should work for both Debian (Wheezy, […]

Configuring Jest to show code coverage for all of your files

Jest is a great tool. It’s fast, actively maintained and has been working well for us with both our front-end and back-end systems. Simply put, Jest helps us make CrowdSync better and more stable. Out of the box though, code coverage is only shown for the files that you’ve written […]

Upgrade to Node.js 8.x on Ubuntu 17.10

Ubuntu 17.10, codenamed “Artful Aardvark” was released yesterday… … with Node.js v6.11.4 #sadtrombone It could be worse though, Debian 9.x (Stretch) still ships with Node v4… but I’ll save how to remedy that for another post ;) Now, I can’t imagine you came here to listen to me throw shade […]

Setting defaults for all your SuperAgent requests

SuperAgent is an HTTP request library for both Node.js and client-side JavaScript. It’s our current choice here at CrowdSync for making requests because it’s lightweight and easy to use. Unfortunately, out of the box, it doesn’t support setting defaults on all of your requests. The simplest approach would be to […]

Switching from Mac OS X back to Linux, Part 4: The Development Environment

New around here? You may want to catch up: Part 1: The Motive Part 2: The Distro Part 3: The Desktop Environment Before switching to OS X, I was running Ubuntu codename whatever and had my local system built out as close to my production environment as possible. I would […]

Programming the same thing in multiple programming languages

Recently I set out on an interesting journey. I wanted to build programming libraries for my API, HolidayAPI. Some of the languages I know like the back of my hand. Others, have never even touched them before. Before you start sending me hate comment, I am fully aware of Swagger. […]

Node.js on the command-line

To start, let me put it out there that I’ve drank the kool-aid and have been doing a ton of hacking with Node.js (and soon enough, IO.js). I’m going to save the details for another post though. So an observation I’ve been making recently is that it seems like the […]

Node.js for Web Apps? Not so much.

I’m sure I’ll catch some flak for this from the Node.js community (which does seem to be thriving) but I’m just not seeing Node.js as a viable platform for building web applications. When I say web application, I specifically mean websites. The platform seems great for building small servers and […]