Node.js

Showing 19-27 of 39 results
EngineeringIcon ChevronTechnology

Express, Koa, Meteor, Sails.js: Four Frameworks Of The Apocalypse

by Chuoxian Yang

Some platforms have an overwhelming number of options for web frameworks. Node.js, the event-driven server-side JavaScript environment, is one such platform. Whether it's the minimalist Express or the full-blown MVC web framework Sails.js, Node.js seems to have it all. In this article, Toptal Freelance Software Engineer Chuoxian Yang explores four of the most popular Node.js web frameworks and discusses how each framework stands out from the rest of the crowd in Node.js.

10 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

Using Scala.js With NPM And Browserify

by Michele Sciabarra

Today, writing applications in languages that compile to JavaScript is a very common practice. Scala developers, for example, can use Scala.js and have the same language for both the server and the client. That said, Scala's compiler and standard dependency management tools are too limiting in the modern JavaScript world. In this article, Toptal Freelance Software Engineer Michele Sciabarra shows us how to integrate Scala.js with the plethora of JavaScript modules available on NPM, using tools like Browserify, and explains how to do this without even having to install Node.js.

11 minute readContinue Reading
EngineeringIcon ChevronTechnology

Programming Visually With Node-RED: Wiring Up The Internet Of Things With Ease

by Jesus Dario

Node-RED, built on Node.js, is a tool designed for programming visually without having to write any code. It comes equipped with a browser-based flow editor that allows hardware devices and APIs to be connected with each other easily, making it an ideal tool for rapidly developing programs for IoT devices. In this article, Toptal freelance software engineer Jesús Darío Rivera walks us through the process of building a simple program using Node-RED and Netbeast along with a virtual light bulb plugin that mimics the capabilities of a real smart bulb.

13 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

Gulp Under the Hood: Building a Stream-based Task Automation Tool

by Mikhail Angelov

Streams are a powerful construct in Node.js and in I/O driven programming in general. Gulp, a tool for task automation, leverages streams in elegant ways to allow developers to enhance their build workflow. In this article, Toptal engineer Mikhail Angelov gives us some insight into how Gulp works with streams by showing us step-by-step how to build a Gulp-like build automation tool.

8 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

Writing Testable Code in JavaScript: A Brief Overview

by Joshua Mock

Writing code that is easily testable takes some effort and planning. However, some patterns exist that can be used to write simple and functional code, making it easier to test them when the time comes. In this article, Toptal engineer Joshua Mock shares some useful tips and patterns for writing testable code in JavaScript that are both simple to understand and simple to implement.

7 minute readContinue Reading
EngineeringIcon ChevronTechnology

NodeOS: The JavaScript Based Operating System

by Danny Morabito

An operating system written in Node.js? Yes, it exists, and it’s called NodeOS. Think for a second about the progress Node.js has made in the short time it’s been around. Now, imagine the same thing happening with an operating system. In this article, Toptal engineer Danny Morabito introduces us to NodeOS, guiding us with a step-by-step tutorial on how to create our first NodeOS application using nothing more than Node.js.

8 minute readContinue Reading
EngineeringIcon ChevronTechnology

Debugging Memory Leaks in Node.js Applications

by Vlad Miller

Memory leaks in long running Node.js applications are like ticking time bombs that, if left unchecked in production environments, can result in devastating outcomes. These bugs are often considered to be hard to find. However, with the right tools and a strategic approach, memory leaks can not only be solved but also avoided in the future. In this article, Toptal engineer Vladyslav Millier gives us insight into what memory leaks are, how some sophisticated debugging tools can be used to find memory leaks, and how to plug them once and for all.

11 minute readContinue Reading
EngineeringIcon ChevronProject Management

Software Reengineering: From Spaghetti to Clean Design

by Juan Pablo Scida

Inheriting someone else’s code can be a nightmare, especially when the code is poorly designed and lacks documentation. In this post, Toptal Engineer Juan Pablo Scida provides a case study of how he reengineered a chat server written in Node.js, transforming its original spaghetti code into a cleanly architected and designed piece of software.

10 minute readContinue Reading
EngineeringIcon ChevronTechnology

Taming WebRTC with PeerJS: Making a Simple P2P Web Game

by Mahmud Ridwan

WebRTC has opened doors to all kinds of new peer-to-peer web applications and games that can run in the browser without the need of additional plugins. However, being a relatively new technology, it still poses some unique challenges to developers. PeerJS aims to tackle some of those challenges by providing an elegant API and insulating developers from WebRTC’s implementation differences. In this article, Toptal engineer Mahmud Ridwan provides an introductory tutorial to building a simple, peer-to-peer web game using PeerJS.

8 minute readContinue Reading

Join the Toptal® community.