JavaScript

Showing 1-9 of 149 results
EngineeringIcon ChevronBack-end

Using Express.js Routes for Promise-based Error Handling

by Vitaly Senko

Maintainable Express.js code after scaling means making common code more feature-rich while reducing boilerplate. Find out how to enable promise-based route code and centralize both error handling and normal-results handling in Express.js apps.

8 minute readContinue Reading
EngineeringIcon ChevronWeb Front-end

Visual Regression Testing with Cypress: A Pragmatic Approach

by Rafael Anachoreta

Visual regression testing is not a new concept. Toptal engineers routinely use it, but with looming deadlines, they sometimes need to innovate and improvise. This article demonstrates how Toptal QA specialists leveraged UI testing and Cypress to run visual regression tests without resorting to specialized tools.

7 minute readContinue Reading
EngineeringIcon ChevronBack-end

Building a Node.js/TypeScript REST API, Part 3: MongoDB, Authentication, and Automated Tests

by Marcos Henrique da Silva

Our Express.js REST API series ends with a bang! Learn how to add a Dockerized MongoDB instance, Mongoose, JWT authentication, user permissions, and automated testing with Mocha, Chai, and SuperTest.

25+ minute readContinue Reading
EngineeringIcon ChevronWeb Front-end

A Deep Dive Into NgRx Advantages and Features

by Luka Onikadze

NgRx is a popular Angular state management library, but to unlock its full potential developers may require a few new skills. In this article, Toptal Full-stack Developer Luka Onikadze explains why he became an NgRx admirer after starting off as a skeptic.

16 minute readContinue Reading
EngineeringIcon ChevronBack-end

Building a Node.js/TypeScript REST API, Part 2: Models, Middleware, and Services

by Marcos Henrique da Silva

The Express.js REST API journey continues! Move from models to full DAOs and DTOs, validate requests with middleware, separate services from controllers, and prepare for a real database.

17 minute readContinue Reading
EngineeringIcon ChevronWeb Front-end

WebAssembly/Rust Tutorial: Pitch-perfect Audio Processing

by Peter Suggate

WebAssembly gives near-native performance to web apps and allows languages other than JavaScript—plus their libraries—to be used on the web. This tutorial leverages Rust and the Web Audio API to make a basic guitar tuner app that runs at 60 FPS, even on mobile.

24 minute readContinue Reading
EngineeringIcon ChevronBack-end

The Definitive Guide to DateTime Manipulation

by Punit Jajodia

Time and date manipulation is notoriously difficult. Developers encountering time zone rules, leap seconds, differences in locale-specific formatting are wise to resort to popular time and date manipulation libraries. But without thinking about how exactly they work, it's still easy to create all sorts of obscure bugs.

23 minute readContinue Reading
EngineeringIcon ChevronWeb Front-end

On-demand Reactivity in Vue 3

by Luka Mikec

The release of Vue 3 brought about substantial performance improvements, but they should not overshadow the introduction of new features and paradigms. In this article, Toptal Full-stack Developer Luka Mikec introduces you to the new Composition API and explains what Vue 3 means for code expressiveness, organization, and reuse.

16 minute readContinue Reading
EngineeringIcon ChevronBack-end

Building a Node.js/TypeScript REST API, Part 1: Express.js

by Marcos Henrique da Silva

Learn practical TypeScript patterns with interfaces and extended classes. Avoid messy console.log() statements with Winston and the Node.js debug module. Create an Express.js-powered REST API back end from scratch!

12 minute readContinue Reading

Join the Toptal® community.