{"slug":"express","group":"backend","title":"Express","short":"A minimal HTTP server for Node.js: routes, middleware, validation and error handling.","icon":"server","aliases":["Express.js","ExpressJS","Node.js API"],"order":801,"status":"available","articleCount":4,"groupTitle":"Backend & API","intro":"","servedLang":"en","primaryArticle":{"id":"6b09417d5ce40d447918f2a3","slug":"express","title":"REST API with Express 5 and TypeScript – from an empty folder to production","summary":"We build the order API of a pierogi shop with Express 5 and TypeScript – Zod-validated configuration, routing, request validation, centralized error handling, async handlers, pino logs, CORS, Helmet, rate limiting, tests with supertest and a Docker image.","servedLang":"en","availableLangs":["pl","en"],"topics":["express","typescript","layered-architecture"],"techs":["node","typescript"],"tags":["express-5","rest-api","zod","pino","helmet","cors","rate-limiting","vitest","supertest","docker"],"level":"intermediate","kind":"tutorial","access":"public","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":23,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T08:38:21.076Z","updatedAt":"2026-11-27T13:02:59.181Z","challengeCount":0,"quizCount":0},"articles":[{"id":"6b09417b5ce40d447918f27b","slug":"authentication","title":"Backend login and registration – passwords, sessions, JWT, refresh token rotation and OAuth","summary":"We build authentication for the pierogi shop API in Express 5 (plus a NestJS variant) – argon2id password hashing, short-lived JWTs and rotated refresh tokens in httpOnly cookies with reuse detection, e-mail verification, password reset, rate limits and lockouts, Google sign-in (OIDC + PKCE) and a checklist based on OWASP ASVS 5.0.","servedLang":"en","availableLangs":["pl","en"],"topics":["authentication","express","nestjs"],"techs":["node","typescript"],"tags":["argon2","jwt","refresh-token-rotation","cookies","csrf","oauth2","oidc","pkce","owasp-asvs","rate-limiting","password-reset"],"level":"advanced","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":37,"stats":{"views":3,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T08:38:19.171Z","updatedAt":"2026-11-27T13:05:06.179Z","relation":{"position":1,"primary":false,"mainTopic":{"slug":"authentication","title":"Authentication"}}},{"id":"6b0941805ce40d447918f2e9","slug":"swagger-openapi","title":"Swagger and OpenAPI in practice – docs from code in NestJS and Express, a typed client and contract hygiene","summary":"We document the pierogi shop API with OpenAPI – in NestJS with @nestjs/swagger (CLI plugin, response DTOs, an API key in Swagger UI, URI versioning, export without a database), in Express from Zod schemas with zod-to-openapi and swagger-ui-express. From the same spec we generate a typed client and guard it in CI.","servedLang":"en","availableLangs":["pl","en"],"topics":["swagger-openapi","nestjs","express"],"techs":["node","typescript"],"tags":["openapi-3-1","nestjs-swagger","swagger-ui","zod-to-openapi","openapi-typescript","openapi-fetch","redocly","oasdiff","api-versioning"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":21,"stats":{"views":3,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T08:38:24.373Z","updatedAt":"2026-11-27T13:03:05.184Z","relation":{"position":2,"primary":false,"mainTopic":{"slug":"swagger-openapi","title":"Swagger / OpenAPI"}}},{"id":"6b09417e5ce40d447918f2cb","slug":"nestjs","title":"NestJS 11 in practice – modules, DI, validation, Mongoose, queues and hexagonal architecture","summary":"We move the pierogi shop's order API to NestJS 11 – modules and dependency injection, controllers and DTOs with class-validator, pipes, guards, interceptors and exception filters, Zod-validated configuration, Mongoose 9, ports and adapters, scheduled jobs and a BullMQ queue, plus tests with swapped dependencies.","servedLang":"en","availableLangs":["pl","en"],"topics":["nestjs","hexagonal-architecture","express"],"techs":["node","typescript"],"tags":["nestjs-11","dependency-injection","class-validator","mongoose","bullmq","scheduling","guards","interceptors","jest"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":24,"stats":{"views":4,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T08:38:22.920Z","updatedAt":"2026-11-27T13:01:09.027Z","relation":{"position":2,"primary":false,"mainTopic":{"slug":"nestjs","title":"NestJS"}}}],"challenges":[],"resources":[{"id":"6b0857c13c96f2d34d0b4451","type":"article","provider":"web","url":"https://khalilstemmler.com/articles/enterprise-typescript-nodejs/functional-error-handling","embedUrl":null,"title":"Functional Error Handling with Express.js and DDD | Enterprise Node.js + TypeScript | Khalil Stemmler","description":"How to expressively represent (database, validation and unexpected) errors as domain concepts using functional programming concepts and how to hook those errors up to our Express.js base controller.","author":"Khalil Stemmler","thumbnailUrl":"https://khalilstemmler.com/img/blog/enterprise-node/enterprise-node.png","durationSec":null,"lang":"en","topics":["ddd-strategic-design"],"techs":["node","javascript","typescript"],"tags":["databases","functional-programming","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":50,"verifiedAt":"2026-11-26T11:29:27.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"},{"id":"6b0857b13c96f2d34d0b3399","type":"repo","provider":"github","url":"https://github.com/goldbergyoni/nodebestpractices","embedUrl":null,"title":"goldbergyoni/nodebestpractices","description":"✅ The Node.js best practices list (July 2026)","author":"goldbergyoni","thumbnailUrl":"https://opengraph.githubassets.com/1/goldbergyoni/nodebestpractices","durationSec":null,"lang":"en","topics":["microservices"],"techs":["node","javascript"],"tags":["best-practices","es6","eslint","express","expressjs","javascript","testing","jest","microservices","mocha"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2017-09-15T08:33:19.000Z","popularity":97,"verifiedAt":"2026-11-26T10:52:30.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b0857c73c96f2d34d0b4956","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=uvTT_0hqhyY","embedUrl":"https://www.youtube-nocookie.com/embed/uvTT_0hqhyY","title":"Handling HTTP API Errors with Problem Details","description":"If you're developing an HTTP API, having a consistent way of returning errors can make handling errors on the client-side simpler. I've talked about Problem Details in another video, which is a standard for returning machine-readable details of errors in an HTTP Response. In this video, I'll cover…","author":"CodeOpinion","thumbnailUrl":"https://i.ytimg.com/vi/uvTT_0hqhyY/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["dotnet"],"tags":[],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2021-09-29T14:00:34.000Z","popularity":64,"verifiedAt":"2026-11-26T10:53:36.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857b53c96f2d34d0b3896","type":"article","provider":"web","url":"https://stripe.com/blog/rate-limiters","embedUrl":null,"title":"Scaling your API with rate limiters","description":"Online payment processing for internet businesses. Stripe is a suite of payment APIs that powers commerce for businesses of all sizes.","author":"stripe.com","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2017-03-30T16:58:10.000Z","popularity":73,"verifiedAt":"2026-11-26T11:19:34.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:52.228Z","updatedAt":"2026-11-26T16:00:52.228Z"},{"id":"6b0857b33c96f2d34d0b3663","type":"repo","provider":"github","url":"https://github.com/NationalBankBelgium/REST-API-Design-Guide","embedUrl":null,"title":"NationalBankBelgium/REST-API-Design-Guide","description":"NBB's REST-ish API Design Guide","author":"NationalBankBelgium","thumbnailUrl":"https://opengraph.githubassets.com/1/NationalBankBelgium/REST-API-Design-Guide","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["design","design-pattern","design-patterns","rest","rest-api","restful","api-design","restful-api","restful-webservices"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2016-10-12T06:58:57.000Z","popularity":56,"verifiedAt":"2026-11-26T10:57:29.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"},{"id":"6b0857b23c96f2d34d0b357c","type":"repo","provider":"github","url":"https://github.com/ExpressGateway/express-gateway","embedUrl":null,"title":"ExpressGateway/express-gateway","description":"A microservices API Gateway built on top of Express.js","author":"ExpressGateway","thumbnailUrl":"https://opengraph.githubassets.com/1/ExpressGateway/express-gateway","durationSec":null,"lang":"en","topics":["microservices"],"techs":["node","javascript"],"tags":["api-gateway","endpoints","express-gateway","express-middleware","expressjs","javascript","security","microservice","microservices","oauth2"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2016-07-06T00:21:45.000Z","popularity":67,"verifiedAt":"2026-11-26T10:58:37.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"},{"id":"6b0857b33c96f2d34d0b36ef","type":"repo","provider":"github","url":"https://github.com/meysamhadeli/booking-microservices-expressjs","embedUrl":null,"title":"meysamhadeli/booking-microservices-expressjs","description":"Practical microservices, built with Node.Js, CQRS, Vertical Slice Architecture, Event-Driven Architecture, Postgres, RabbitMQ, Express and the latest technologies.","author":"meysamhadeli","thumbnailUrl":"https://opengraph.githubassets.com/1/meysamhadeli/booking-microservices-expressjs","durationSec":null,"lang":"en","topics":["vertical-slice-architecture","event-driven-architecture","clean-architecture","cqrs","microservices"],"techs":["node","javascript","typescript"],"tags":["boilerplate","clean-architecture","cqrs","docker","event-driven-architecture","express","software-architecture","testing","databases","messaging"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2023-09-01T19:35:50.000Z","popularity":48,"verifiedAt":"2026-11-26T10:58:26.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:51.220Z","updatedAt":"2026-11-26T16:00:51.220Z"}],"resourceGroups":[{"type":"video","items":[{"id":"6b0857c73c96f2d34d0b4956","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=uvTT_0hqhyY","embedUrl":"https://www.youtube-nocookie.com/embed/uvTT_0hqhyY","title":"Handling HTTP API Errors with Problem Details","description":"If you're developing an HTTP API, having a consistent way of returning errors can make handling errors on the client-side simpler. I've talked about Problem Details in another video, which is a standard for returning machine-readable details of errors in an HTTP Response. In this video, I'll cover…","author":"CodeOpinion","thumbnailUrl":"https://i.ytimg.com/vi/uvTT_0hqhyY/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["dotnet"],"tags":[],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2021-09-29T14:00:34.000Z","popularity":64,"verifiedAt":"2026-11-26T10:53:36.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"}]},{"type":"article","items":[{"id":"6b0857c13c96f2d34d0b4451","type":"article","provider":"web","url":"https://khalilstemmler.com/articles/enterprise-typescript-nodejs/functional-error-handling","embedUrl":null,"title":"Functional Error Handling with Express.js and DDD | Enterprise Node.js + TypeScript | Khalil Stemmler","description":"How to expressively represent (database, validation and unexpected) errors as domain concepts using functional programming concepts and how to hook those errors up to our Express.js base controller.","author":"Khalil Stemmler","thumbnailUrl":"https://khalilstemmler.com/img/blog/enterprise-node/enterprise-node.png","durationSec":null,"lang":"en","topics":["ddd-strategic-design"],"techs":["node","javascript","typescript"],"tags":["databases","functional-programming","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":50,"verifiedAt":"2026-11-26T11:29:27.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:04.995Z","updatedAt":"2026-11-26T16:01:04.995Z"},{"id":"6b0857b53c96f2d34d0b3896","type":"article","provider":"web","url":"https://stripe.com/blog/rate-limiters","embedUrl":null,"title":"Scaling your API with rate limiters","description":"Online payment processing for internet businesses. Stripe is a suite of payment APIs that powers commerce for businesses of all sizes.","author":"stripe.com","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2017-03-30T16:58:10.000Z","popularity":73,"verifiedAt":"2026-11-26T11:19:34.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:52.228Z","updatedAt":"2026-11-26T16:00:52.228Z"}]},{"type":"repo","items":[{"id":"6b0857b13c96f2d34d0b3399","type":"repo","provider":"github","url":"https://github.com/goldbergyoni/nodebestpractices","embedUrl":null,"title":"goldbergyoni/nodebestpractices","description":"✅ The Node.js best practices list (July 2026)","author":"goldbergyoni","thumbnailUrl":"https://opengraph.githubassets.com/1/goldbergyoni/nodebestpractices","durationSec":null,"lang":"en","topics":["microservices"],"techs":["node","javascript"],"tags":["best-practices","es6","eslint","express","expressjs","javascript","testing","jest","microservices","mocha"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2017-09-15T08:33:19.000Z","popularity":97,"verifiedAt":"2026-11-26T10:52:30.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b0857b33c96f2d34d0b3663","type":"repo","provider":"github","url":"https://github.com/NationalBankBelgium/REST-API-Design-Guide","embedUrl":null,"title":"NationalBankBelgium/REST-API-Design-Guide","description":"NBB's REST-ish API Design Guide","author":"NationalBankBelgium","thumbnailUrl":"https://opengraph.githubassets.com/1/NationalBankBelgium/REST-API-Design-Guide","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["design","design-pattern","design-patterns","rest","rest-api","restful","api-design","restful-api","restful-webservices"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2016-10-12T06:58:57.000Z","popularity":56,"verifiedAt":"2026-11-26T10:57:29.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"},{"id":"6b0857b23c96f2d34d0b357c","type":"repo","provider":"github","url":"https://github.com/ExpressGateway/express-gateway","embedUrl":null,"title":"ExpressGateway/express-gateway","description":"A microservices API Gateway built on top of Express.js","author":"ExpressGateway","thumbnailUrl":"https://opengraph.githubassets.com/1/ExpressGateway/express-gateway","durationSec":null,"lang":"en","topics":["microservices"],"techs":["node","javascript"],"tags":["api-gateway","endpoints","express-gateway","express-middleware","expressjs","javascript","security","microservice","microservices","oauth2"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2016-07-06T00:21:45.000Z","popularity":67,"verifiedAt":"2026-11-26T10:58:37.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"},{"id":"6b0857b33c96f2d34d0b36ef","type":"repo","provider":"github","url":"https://github.com/meysamhadeli/booking-microservices-expressjs","embedUrl":null,"title":"meysamhadeli/booking-microservices-expressjs","description":"Practical microservices, built with Node.Js, CQRS, Vertical Slice Architecture, Event-Driven Architecture, Postgres, RabbitMQ, Express and the latest technologies.","author":"meysamhadeli","thumbnailUrl":"https://opengraph.githubassets.com/1/meysamhadeli/booking-microservices-expressjs","durationSec":null,"lang":"en","topics":["vertical-slice-architecture","event-driven-architecture","clean-architecture","cqrs","microservices"],"techs":["node","javascript","typescript"],"tags":["boilerplate","clean-architecture","cqrs","docker","event-driven-architecture","express","software-architecture","testing","databases","messaging"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2023-09-01T19:35:50.000Z","popularity":48,"verifiedAt":"2026-11-26T10:58:26.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:51.220Z","updatedAt":"2026-11-26T16:00:51.220Z"}]}],"siblings":[{"slug":"express","title":"Express","icon":"server","status":"available","current":true},{"slug":"nestjs","title":"NestJS","icon":"boxes","status":"available","current":false},{"slug":"swagger-openapi","title":"Swagger / OpenAPI","icon":"file-json","status":"available","current":false},{"slug":"authentication","title":"Authentication","icon":"key-round","status":"available","current":false}]}