Tag: Express
6 posts
-
File Uploads in Express with Multer: Storage Engines, Filters, Limits and Sharp Thumbnails
Handling file uploads in Express with Multer: storage engines, file metadata, type filtering, size limits, error handling, and resizing images into thumbnails with Sharp.
-
Authentication with Passport.js: Local Login, Google and GitHub OAuth, JWT and Session Stores
Adding authentication to Node.js with Passport.js: local username/password login, protected routes, Google and GitHub OAuth, JWT strategy, combining strategies, and production session stores.
-
Securing Express with Helmet: CSP, HSTS, Frame Options and the Headers That Matter
Hardening Express apps with Helmet: what each security header does, configuring Content Security Policy and HSTS, clickjacking and MIME-sniffing protection, and referrer policy.
-
CORS in Express: Allowed Origins, Credentials, Preflight Requests and Dynamic Origins
Configuring CORS in Node.js and Express: why browsers block requests, allowing specific or dynamic origins, cookies and credentials, preflight requests, and per-route settings.
-
TypeScript REST API Project | Express & Layered Architecture
A TypeScript REST API tutorial covering Express, tsconfig, DTOs with Omit/Partial, a router/controller/service/database layering pattern, a consistent ApiResponse envelope, and curl examples for user CRUD.
-
Express.js for REST APIs: Routing, Middleware Order, Error Handling and What Changed in Express 5
Build REST APIs with Express: how the middleware chain runs, routers, validation, centralized error handling, Express 5 changes (async errors, path syntax), and production settings.