Tag: nodejs
Browse 29 practical software engineering resources tagged with "nodejs". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving nodejs. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.
Node.js Server-Side Development
Node.js brings JavaScript to the server, enabling event-driven, non-blocking I/O that is well suited for APIs, real-time systems, and microservices. Production Node.js requires attention to memory, event loops, streams, and module design.
The resources below cover Express, Fastify, WebSockets, file handling, concurrency, testing, security, and deployment. Each recipe is built around code that runs efficiently under real traffic.
Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.
Express.js Middleware Composition Patterns
Build maintainable Express applications using middleware composition patterns for authentication,...
Build a GraphQL API with Apollo Server and TypeScript
How to build a production-ready GraphQL API using Apollo Server, TypeScript, and DataLoader to...
Build gRPC Services in TypeScript with Protocol Buffers
Build production-ready gRPC services in TypeScript using Protocol Buffers. Covers unary, streaming,...
Node.js WebSocket Real-Time Communication with Socket.io
Build real-time WebSocket applications in Node.js with Socket.io
Server-Sent Events with Node.js and Express
Build server-to-client push with Server-Sent Events in Node.js and Express. Covers connections,...
Build a WebSocket Server (Python, Node.js, Java)
How to build a WebSocket server for bidirectional real-time communication, with connection...
Node.js JWT Authentication: Verify and Refresh Tokens
Implement JWT authentication in Node.js with access and refresh tokens
Node.js OAuth2 GitHub Login with Express
Implement GitHub OAuth2 login flow in Node.js with Express and Passport
How to Hash Passwords Securely (Python, JavaScript, Java)
Learn how to hash and verify passwords with bcrypt, Argon2, and PBKDF2. Practical examples in...
Implement an LRU Cache in Node.js
Build a least-recently-used cache in Node.js with O(1) get and set operations using a Map-based...
Implement Redis Cache Invalidation in Node.js
Invalidate Redis cache entries in Node.js with TTL expiry, explicit deletion, pattern-based...
Merge JSON Files in JavaScript
Combine multiple JSON files with conflict resolution strategies using Node.js.
CRUD Operations with MongoDB and Mongoose
How to perform Create, Read, Update, and Delete operations in MongoDB using Mongoose ODM with...
Node.js Caching with Redis: Cache-Aside and TTL Patterns
Cache API responses in Node.js with Redis using cache-aside and TTL patterns
Generate Temporary Files
How to create temporary files and directories safely with automatic cleanup across Python, Node.js,...
Node.js File Upload Validation: Type, Size, and Content
Validate file uploads in Node.js with multer for type, size, and content
Read Large Files in Node.js with Streams (5GB in 64KB RAM)
Process GB-sized files in Node.js with createReadStream, readline, Transform pipelines, and...
Read and Write Files in Python, Node.js & Bash
How to read and write files safely in Python, Node.js, Bash and Java, with atomic writes and...
Rotate Log Files
How to implement log rotation by size, date, and count to prevent disk exhaustion across Python,...
High-Performance Logging with pino
How to use pino for fast structured JSON logging in Node.js, including log levels, child loggers,...