nodejs-backend-patterns
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.
How to use
Zainstaluj umiejętność w swoim projekcie agenta — dodaj referencję do nodejs-backend-patterns w konfiguracji agenta lub MCP servera.
Wybierz framework: Express.js dla minimalnego, elastycznego podejścia lub Fastify dla wysokiej wydajności. Oba są wspierane przez tę umiejętność.
Zainicjuj aplikację — użyj dostarczonych szablonów konfiguracyjnych do ustawienia middleware'u bezpieczeństwa (helmet, CORS, kompresja), parsowania żądań i logowania.
Implementuj wzorce architektoniczne — zastosuj guidance do middleware'u, obsługi błędów, autentykacji i integracji baz danych (SQL i NoSQL) zgodnie z potrzebami Twojego API.
Rozbuduj funkcjonalność — dodaj endpointy REST, schematy GraphQL, WebSockety dla aplikacji real-time lub background job processing w oparciu o best practices zawarte w umiejętności.
Testuj i wdrażaj — skonfiguruj zmienne środowiskowe (PORT, ALLOWED_ORIGINS) i uruchom serwer, aby zweryfikować, że middleware i routing działają poprawnie.