Express.js

Showing 1-9 of 12 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 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

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

The Back End: Using Gatsby.js and Node.js for Static Site Updates

by Furkan Yavuz

Static websites are simple and fast, but it's also possible to automate updates to them to keep them fresh and relevant. Find out how to generate daily-updated HTML pages that track the latest releases of popular GitHub repositories.

10 minute readContinue Reading
EngineeringIcon ChevronBack-end

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 ChevronBack-end

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 ChevronBack-end

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

Join the Toptal® community.