Best of Node.jsOctober 2023

  1. 1
    Article
    Avatar of communityCommunity Picks·3y

    Dotenv is dead

    Node.js 20.6.0 brings support for loading environment variable files. Reading directly from process.env has issues such as lack of type safety, validation, and immutability. Zod is a library used to parse and validate environment variables.

  2. 2
    Article
    Avatar of amplicationAmplication·3y

    Top 6 ORMs for Modern Node.js App Development

    Learn about the importance of ORM in Node.js app development, the benefits it provides, and explore the top 6 ORM tools for modern Node.js app development.

  3. 3
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    Learn Bun, a faster Node.js alternative

    Bun is a faster JavaScript and TypeScript runtime that promises to revolutionize development with its lightning-fast startup times and powerful features.

  4. 4
    Article
    Avatar of hnHacker News·2y

    Goodbye, Node.js Buffer

    The article discusses the need to move from Node.js Buffer to Uint8Array for binary data handling. It highlights the incompatibilities between the two and provides guidance on transitioning from Buffer to Uint8Array. It also mentions the need for more utility methods in Uint8Array.

  5. 5
    Article
    Avatar of towardsdevTowards Dev·3y

    Asynchronous JavaScript

    This article explores the world of asynchronous JavaScript and how it can be managed using promises and the elegant async/await syntax. It discusses the concept of asynchronous actions in JavaScript, the use of async/await keywords, the need for error handling in async/await, and the execution order of asynchronous code. With the right tools and understanding, developers can write readable and maintainable asynchronous code in JavaScript.

  6. 6
    Article
    Avatar of amplicationAmplication·2y

    Node.js Worker Threads Vs. Child Processes: Which one should you use?

    Node.js has introduced the concept of Worker Threads and Child Processes to help with parallel processing in your app so that you can execute specific processes in parallel. In this article, we will understand both concepts and discuss when it would be useful to employ each of them. We will look at how we can implement a Worker Thread in Node.

  7. 7
    Article
    Avatar of awstipAWS Tip·2y

    Deploying a Node.js Application on AWS

    Learn how to deploy a Node.js application on AWS using Termius for SSH access and GitHub for version control. Discover the benefits of deploying on AWS, the steps to create an AWS instance, connect it to Termius, and clone a repository from GitHub. Install Node.js, Express, and other dependencies, and deploy your application on AWS.

  8. 8
    Article
    Avatar of snykSnyk·2y

    How to protect Node.js apps from CSRF attacks

    This article explores how CSRF attacks work in Node.js applications and provides strategies to protect against them. It covers the synchronizer token pattern (STP), SameSite cookies, and the Double Submit Cookie pattern. The article also mentions the importance of testing CSRF protection and provides best practices for securing Node.js applications.

  9. 9
    Article
    Avatar of pointerPointer·3y

    wasp-lang/wasp: The fastest way to develop full-stack web apps with React & Node.js.

    Wasp is a framework for developing full-stack web apps with React and Node.js. It offers quick start, no boilerplate code, and no lock-in. It provides features such as full-stack auth, RPC, simple deployment, jobs, email sending, and full-stack type safety. Wasp works by generating the full source of the web app based on a configuration file and source files with unique logic.

  10. 10
    Article
    Avatar of communityCommunity Picks·3y

    vercel/ncc: Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.

    ncc is a CLI tool for compiling a Node.js module into a single file, with the motivation of publishing minimal packages to npm and shipping relevant app code to serverless environments. It has zero configuration and built-in support for TypeScript.

  11. 11
    Article
    Avatar of devgeniusDev Genius·3y

    Microservices Architecture with Node.js: Building Scalable and Robust Applications

    Microservices architecture involves breaking an application down into smaller, independent services that communicate with each other through APIs. Node.js is a popular choice for building microservices. The article provides a guide on setting up microservices architecture in Node.js using Seneca.js and explains how to connect microservices.

  12. 12
    Article
    Avatar of asayerasayer·3y

    Collaboration in Real Time with React and Node

    Learn how to build a real-time collaboration board using React and Node. Experience the benefits of global reach, brainstorming together, and efficiency boost. Use React and Node.js to create a real-time whiteboard where users can collaborate in real-time. Install necessary dependencies and configure the client and server for real-time communication. Implement drawing functionality, and enable drag and drop for enhanced interactivity.

  13. 13
    Article
    Avatar of communityCommunity Picks·3y

    Use Socket.io to build your first multiplayer game!

    Learn how to use Socket.io to build a multiplayer game. Socket.io is a JavaScript library for realtime web applications that enables bi-directional communication between web clients and servers.

  14. 14
    Article
    Avatar of hnHacker News·2y

    Introducing MSW 2.0

    MSW 2.0 introduces new changes to the Mock Service Worker library, including a refined public API with first-class support for Fetch API primitives. The update aims to improve the educational aspect of the library, allowing developers to learn concepts and APIs that can be applied outside of MSW. The new version also embraces JavaScript standards and removes the need for polyfills, providing a feature-rich and standard way of handling requests and defining responses. MSW 2.0 deprecates support for Node.js v14 and relies on the standard Fetch API for representing requests and responses.

  15. 15
    Article
    Avatar of netguruNetguru·2y

    8 Types of Applications You Can Build With Node.js

    Node.js is a versatile technology that can be used to build web applications, IoT systems, APIs, real-time chats, complex single-page applications, real-time collaboration tools, streaming apps, and microservices architecture. It excels in scenarios that require real-time capabilities, scalability, and asynchronous operations. Node.js is efficient at handling HTTP requests and provides a rich ecosystem of packages and libraries for developers to leverage in their projects. It is a popular choice for efficient, scalable, and responsive applications across various use cases.

  16. 16
    Article
    Avatar of discdotDiscover .NET·2y

    Blazor with TailwindCSS

    Learn how to use TailwindCSS with Blazor using the necessary packages and configurations.

  17. 17
    Article
    Avatar of appsignalAppSignal·2y

    What's New in Node.js 21

    Node.js version 21 introduces improvements in the Fetch API, Web Streams API, WebSocket client, ES Modules, test runner, module customization, and performance. It is not recommended for production use and can be upgraded using the relevant link or an environment management tool like Volta.

  18. 18
    Article
    Avatar of nodejsNode.js·2y

    Node.js 21 is now available!

    Node.js 21 has been released with updates to the V8 JavaScript engine, stable fetch/WebStreams, a new experimental WebSocket client, and more. It will replace Node.js 20 as the 'Current' release line.

  19. 19
    Article
    Avatar of hackernoonHacker Noon·2y

    Deploying a Node.js App with an Associated Domain

    Learn how to deploy a Node.js app and associate it with a domain by setting up a VPS, configuring Nginx, and enabling HTTPS.

  20. 20
    Article
    Avatar of dzDZone·3y

    Building Lambda Functions With Node.JS

    Learn how to build efficient Lambda functions with Node.js for serverless computing. Explore the setup, event triggers, dependencies, performance optimization, debugging and monitoring, deployment and scaling, security, and best practices.

  21. 21
    Article
    Avatar of gcgitconnected·2y

    All About Infinite Scrolling using React and JavaScript

    Learn how to implement infinite scrolling using React and JavaScript. Explore two methods: using the Window's Scroll and Size Properties, and using the Intersection Observer API. Virtualization improves performance by rendering only the visible items in a list or grid. The Intersection Observer API allows for efficient infinite scrolling without continuous monitoring of the scroll event.