#Express
5 notas · última:
The 80/20 Guide to Express Error Handling
Explains how Express error-handling middleware centralizes HTTP error responses, how `next()` routes async failures to handlers, and how `wrapAsync()` makes async/await errors work cleanly.
Node.js Best Practices — Caching and REST
The page recommends Redis caching for Express apps, monitoring and logging at the server level, setting NODE_ENV to production for caching and template performance, and using REST-style HTTP routes and methods.
How to Build a PWA in Vanilla JavaScript
The post outlines a basic PWA built with plain JavaScript, a manifest, a service worker and an Express server. It ends with a cached app that can be accessed offline and checked with Lighthouse.
Primeiros passos com Passport e Express em Node.js
O texto apresenta Passport como middleware de autenticação modular para Node.js e mostra como integrar login com Twitter em uma aplicação Express, usando OAuth, sessões e rotas protegidas.
How to include route handlers in multiple files in Express
The page shows one way to load every route file in a routes directory by reading the folder, skipping index.js, requiring each module, and calling it with app from app.js.
