Node.js

Showing 10-18 of 39 results
EngineeringIcon ChevronWeb front-end

Web Scraping with a Headless Browser: A Puppeteer Tutorial

by Nick Chikovani

In this article, Toptal Freelance JavaScript Developer Nick Chikovani shows how easy it is to perform web scraping using a headless browser. Specifically, he provides a Puppeteer tutorial, going through a few examples of how to control Google Chrome to take screenshots and gather structured data.

10 minute readContinue Reading
EngineeringIcon ChevronMobile

How to Do JWT Authentication with an Angular 6 SPA

by Sebastian Schocke

JSON web tokens (JWTs) provide a method of authenticating requests that's convenient, compact, and secure. More often than not, Angular apps will include them in their data flows. In this tutorial, Toptal Freelance Software Engineer Sebastian Schocke shows how to implement JWT authentication in an Angular 6 single-page application (SPA), complete with a Node.js back-end.

13 minute readContinue Reading
EngineeringIcon ChevronMobile

One-click Login with Blockchain: A MetaMask Tutorial

by Amaury Martiny

Online users are becoming increasingly resistant to traditional email/password registration processes. One-click social logins via Facebook, Google, or GitHub are better, but they come with data privacy trade-offs. This article introduces a one-click, cryptographically-secure login flow using MetaMask, with all data stored on the app's own back-end.

13 minute readContinue Reading
EngineeringIcon ChevronTechnology

Integration and End-to-end Tests Made Easy with Node.js and MongoDB

by Mikhail Angelov

Dealing with a real database for integration and end-to-end testing can pose some challenges. One way of working around them is to use an in-memory database that integrates well with the testing framework and provides APIs to manipulate its state from test code. In this article, Toptal Freelance Software Engineer Mikhail Angelov shows how you can write integration and end-to-end tests easily for your Node.js and MongoDB application without having to write complicated setup/teardown code.

7 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

Asynchronous JavaScript: From Callback Hell to Async and Await

by Demir Selmanovic

Asynchronous programming used to be a challenge even for seasoned professionals, leading to aptly named phenomena like Callback Hell. In this article, Toptal JavaScript Developer Demir Selmanovic explains how async functions took us out of purgatory and why you should be using them.

5 minute readContinue Reading
EngineeringIcon ChevronTechnology

Implementing Serverless Node.js Functions Using Google Cloud

by Vignes Aruljothi

Serverless computing is an architecture style in which the code is executed in a cloud platform where we don’t need to worry about the hardware and software setup, security, performance, and CPU idle time costs. It's an advancement of cloud computing that goes beyond infrastructure that abstracts the software environment as well. It means no configuration is required to run the code.

6 minute readContinue Reading
EngineeringIcon ChevronTechnology

Server-side I/O Performance: Node vs. PHP vs. Java vs. Go

by Brad Peabody

Understanding the Input/Output (I/O) model of your application can mean the difference between an application that deals with the load it is subjected to, and one that crumples in the face of real-world uses cases. Perhaps while your application is small and does not serve high loads, it may matter far less. But as your application’s traffic load increases, working with the wrong I/O model can get you into a world of hurt.

16 minute readContinue Reading
EngineeringIcon ChevronTechnology

A Node.js Guide to Actually Doing Integration Tests

by Luka Blažecki

Your software isn’t fully tested until you write integration tests for it. While unit tests help ensure that functions are properly written, integration tests help ensure that the system is working properly as a whole. In this article, Toptal Software Engineer Luka Blažecki uses Node.js to explain why integration testing is important for every development platform and how to write clean, composable integration tests.

10 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

Gulp: A Web Developer's Secret Weapon for Maximizing Site Speed

by Anton Kanevsky

When dealing with web-based projects that run in the production environment, being able to build and deploy changes quickly is a top priority. However, repetitive processes such as building front-end assets, when not automated, can be prone to critical errors. In this article, Toptal Freelance Software Engineer Anton Kanevsky shows us how Gulp can solve various challenges of build automation through simple JavaScript routines.

11 minute readContinue Reading

Join the Toptal® community.