Node.js

Showing 1-9 of 49 results
EngineeringIcon ChevronTechnology

How to Use JWT and Node.js for Better App Security

By Gonzalo Hirsch

To protect client data, your system must identify and block uninvited visitors. Create a REST API using Node.js, TypeScript, and Express, enhanced with JWT support.

25+ minute readContinue Reading
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 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 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 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
EngineeringIcon ChevronBack-end

Creating a Secure REST API in Node.js

By Marcos Henrique da Silva

As patterns go, REST APIs are so useful and ubiquitous that every web developer, regardless of language or platform, should know how to build them. In this article, Toptal JavaScript Developer Marcos Henrique da Silva shows how to create a simple and secure REST API for user management on Node.js.

13 minute readContinue Reading
EngineeringIcon ChevronBack-end

How to Build a Node.js Error-handling System

By Jay Huang

Node.js developers often find themselves working with chaotic code that’s anything but clean. This can obviously cause productivity issues and outright errors. In this article, Toptal Full-stack Developer Jay Huang will introduce you to error-handling in Node.js and demonstrate how you can build a robust error-handling system yourself.

7 minute readContinue Reading
EngineeringIcon ChevronBack-end

Cabin Fever Coding: A Node.js Back-end Tutorial

By Kevin Bloch

Missing the luxury of a good, old-fashioned remote control when the laptop is beyond easy reach? Transform your old smartphone into a remote and learn some basic Node.js/Express/Pug along the way.

16 minute readContinue Reading
EngineeringIcon ChevronBack-end

Language Server Protocol Tutorial: From VSCode to Vim

By Jeremy Greer

The main artifact of all your work is most likely plain text files. So why don't you use Notepad to create them? Find out how the Language Server Protocol can transform text editors into code editors, without coupling.

11 minute readContinue Reading

Join the Toptal® community.