Best of Node.jsApril 2025

  1. 1
    Article
    Avatar of freecodecampfreeCodeCamp·51w

    How to Harden Your Node.js APIs – Security Best Practices

    Learn how to enhance the security of your Node.js APIs with practical tips focusing on using environment variables, input validation, rate limiting, enforcing HTTPS, securing HTTP headers with Helmet, data sanitization, and strong authentication and authorization methods. These measures aim to protect against SQL injection, brute force attacks, and data leaks, among other threats.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    How to Deploy a Node.js Application on AWS

    Learn to deploy a Node.js/Express application on AWS using an EC2 instance. The guide covers prerequisites such as having an AWS account and knowledge of Node.js, Express, and Linux commands. It details setting up an EC2 instance, installing necessary packages, deploying the application, and configuring security settings. The tutorial also includes steps to use Caddy as a reverse proxy to simplify access to the deployed app.

  3. 3
    Article
    Avatar of platformaticPlatformatic·52w

    Watt Admin: Your Local Node.js Monitoring Solution

    Watt Admin is an open-source monitoring and administration tool for Platformatic applications, providing real-time performance metrics, comprehensive logging, and full control over services. Key features include real-time memory and CPU usage monitoring, latency tracking, centralized log viewing and filtering, service management capabilities, and CLI integration. It is easy to set up with a simple command and is ideal for development diagnostics.

  4. 4
    Article
    Avatar of freecodecampfreeCodeCamp·52w

    The Serverless Architecture Handbook: How to Publish a Node Js Docker Image to AWS ECR and Deploy the Container to AWS Lambda

    Learn how to deploy a Node.js application using a serverless architecture with AWS Lambda and Docker. The detailed guide covers cloning your repository, building a Docker image, pushing the image to AWS ECR, and deploying the container to AWS Lambda. Additionally, it explains serverless advantages, differences between deployment models, and practical use cases.

  5. 5
    Article
    Avatar of collectionsCollections·1y

    How to Build a Multi-Tenant EdTech SaaS Application with Next.js

    The guide provides detailed steps to build a multi-tenant EdTech SaaS application using Next.js. It covers setting up API calls with authorization, managing user roles with Zustand, and creating a responsive UI using Shadcn components. The backend integration includes using Permit.io for managing access, Appwrite for backend services, and creating a Node.js backend for added flexibility and security.

  6. 6
    Video
    Avatar of asaprogrammerAs a Programmer·50w

    MERN Stack Project: Video Calling Realtime Chat App & Social App

    This post guides you through building a production-ready video calling and real-time chat application using the MERN stack. It covers creating a back-end with NodeJS, Express, and MongoDB, handling authentication with JSON web tokens, and developing the front-end with React and best practices like custom hooks and Tenstack query. The project focuses on creating a scalable language exchange platform with multiple features, including video and group calls, chat messaging, and theme selection.

  7. 7
    Article
    Avatar of freecodecampfreeCodeCamp·51w

    How to Build Autonomous Agents using Prompt Chaining with AI Primitives (No Frameworks)

    Autonomous agents are AI systems capable of making decisions and taking actions independently using large language models (LLMs), tools, and memory. This tutorial emphasizes building these agents using AI primitives without relying on heavy frameworks. By leveraging Langbase’s agentic architecture called prompt chaining, tasks are segmented into sequential prompts, enhancing the ease of debugging and output quality. It walks through setting up a TypeScript Project with Langbase SDK to create a prompt chaining agent for transforming raw product descriptions into refined marketing copy.

  8. 8
    Video
    Avatar of youtubeYouTube·1y

    Why Spring Boot is the BEST Backend Framework

    Spring Boot is hailed as the superior backend framework for its built-in security, database integration, scalability, and reliability. The post criticizes other frameworks like Express.js, Django, and Ruby on Rails for their complexity, lack of built-in features, and scalability issues. Spring Boot is advocated as the practical choice for those who want a backend that works efficiently without excessive configuration or headaches.

  9. 9
    Video
    Avatar of johnhammondJohn Hammond·1y

    I Backdoored Cursor AI

    The post explains how a vulnerability in Electron-based applications, like the AI code editor Cursor, can be exploited using Loki C2, a Node.js-based command and control framework. It demonstrates setting up and using Loki to backdoor Electron applications by replacing their JavaScript files, allowing for remote execution of arbitrary code. The post also discusses how to ensure the targeted application remains functional while compromised, highlighting the collaboration between the author and the developer of Loki C2.

  10. 10
    Article
    Avatar of freecodecampfreeCodeCamp·51w

    Learn REST API Principles by Building an Express App

    Learn the core principles of REST architecture by building a simple Express app. The guide covers setting up an Express server, defining RESTful routes for CRUD operations, using middleware for input validation, and best practices to avoid when designing APIs. By the end, you will understand how to make APIs that are scalable, predictable, and easy to work with.

  11. 11
    Article
    Avatar of itnextITNEXT·50w

    From 0 to 10K ⭐: How Open SaaS became the Free Boilerplate Devs Love

    Open SaaS is a popular, free, open-source SaaS starter kit that streamlines development by offering essential features like authentication, payments, and file uploads without relying heavily on paid services. Built on the Wasp framework, it aids quick and efficient application launch, focusing on the business logic rather than boilerplate code. With over 10,000 GitHub stars, Open SaaS projects empower developers to build profitable businesses rapidly and are well-suited for AI-assisted development.

  12. 12
    Video
    Avatar of programmersarealsohumanProgrammers are also human·1y

    Senior Engineer tries Vibe Coding.

    A senior engineer shares their frustrations while attempting to fix and optimize code, exploring various technologies like Node.js, Vim, and artificial intelligence. They experience issues with component structures, obeying style guides, and argue over using certain programming languages and frameworks. Despite the setbacks, they persist in finding solutions for optimal coding practices.

  13. 13
    Article
    Avatar of freecodecampfreeCodeCamp·52w

    How to Write Unit Tests and E2E Tests for NestJS Applications

    Learn how to write unit tests and E2E tests for NestJS applications. This guide covers the fundamentals of testing, how to mock data, and the importance of unit test coverage. It includes practical examples and a demo project to help you understand the process. The tutorial also discusses when it's appropriate to write tests and the benefits of testing in enhancing system robustness and maintainability.

  14. 14
    Article
    Avatar of appsignalAppSignal·51w

    How To Write Unit Tests in Node.js Using Mocha

    Mocha is a popular JavaScript test framework used for unit testing in Node.js applications. It supports both Behavior-Driven Development (BDD) and Test-Driven Development (TDD). Mocha allows flexible test suite configuration and the use of any assertion library. With features like intuitive flow of execution, sync and async code testing, and support for parallel execution, Mocha aims to make the testing process efficient and comprehensive. The guide provides a step-by-step tutorial to set up a Node.js project, add Mocha, and write and execute unit tests.

  15. 15
    Video
    Avatar of lowlevelgamedevLow Level Game Dev·1y

    Why I moved my game to Javascript?

    After developing a game in C++ for 5 years, the author decided to migrate the project to JavaScript due to the rigid nature of the C++ code. The author highlights the ease of configuring libraries in JavaScript and the lack of compile errors. The game runs on Node.js and Electron, although it has slightly lower FPS compared to the C++ version. Future videos will cover optimizations and new features.

  16. 16
    Article
    Avatar of devtronDevtron·52w

    Deploy Java, Node.js & Python Microservices on Kubernetes

    Learn how to deploy Java, Node.js, and Python microservices on Kubernetes. This guide covers containerizing applications with Docker, creating Kubernetes deployment files, exposing services, and using Ingress for traffic routing. It also explores how Devtron can simplify managing, monitoring, and scaling these services.

  17. 17
    Article
    Avatar of css-irlCSS {IRL}·51w

    Creating CSS Theme Variables from a JS file

    Learn how to define brand colors and their variants in a JavaScript file and generate corresponding CSS custom properties automatically using a Node.js script. This approach ensures consistency and reduces maintenance by keeping theme variables centralized. The guide covers the setup of a Node.js project, writing a script to map JS object keys to CSS properties, and exporting the generated CSS to a file.

  18. 18
    Video
    Avatar of bytegradByteGrad·52w

    Always Use DAL Authentication In Next.js (Data Access Layer)

    Discusses the importance of using a data access layer (DAL) for enhancing authentication and data security in Next.js applications. Covers the potential risks of relying solely on middleware or page component for authentication, and explains how integrating a DAL can provide a more robust and secure solution. Offers practical examples and tips on implementing DAL while highlighting the benefits and some limitations of this approach.

  19. 19
    Article
    Avatar of platformaticPlatformatic·1y

    How Intelligent Caching boosts enterprise Node.js efficiency

    Platformatic introduces Intelligent Caching, a machine learning-based solution to automate complex caching decisions for large-scale Node.js applications. This technology eliminates manual guesswork, reduces operational overhead, and accelerates deployment cycles, enabling engineering teams to focus on strategic tasks. Intelligent Caching is available as part of the Platformatic Intelligent Command Center, positioning enterprises ahead of competitors still relying on traditional caching methods.

  20. 20
    Article
    Avatar of jswklyJavaScript Weekly·1y

    JavaScript Weekly Issue 731: April 11, 2025

    Learn to master Next.js with the updated Next.js Fundamentals v4, which covers React Server Components, dynamic routing, and more. A comprehensive guide on Node.js testing best practices includes over 50 tips. Speculation arises about npm registry wiping access tokens, with Cloudflare introducing easier deployment for Next.js apps. Upcoming updates from RedwoodJS and p5.js, a new alpha version of Next.js 15.3 featuring Turbopack builds, and the Chrono 2.8 natural language date parser are also highlighted.