Best of Node.js โ€” November 2024

  1. 1
    Video
    Avatar of techworldwithnanaTechWorld with Nanaยท1y

    Full NGINX Tutorial - Demo Project with Node.js, Docker

    Learn NGINX fundamentals and how to configure it as a reverse proxy for a Node.js application using Docker. This comprehensive guide covers step-by-step instructions on setting up multiple instances of a Dockerized application, configuring NGINX for load balancing, enabling HTTPS with SSL certificates, and the essential configurations to secure and optimize your web server. The tutorial also touches upon the importance of DevOps skills and introduces a complete DevOps educational program for further learning.

  2. 2
    Video
    Avatar of youtubeYouTubeยท1y

    Learn Backend Development in 4 Hours | Backend Web Development Full Course

    The post provides a comprehensive guide to backend web development using Node.js and Express.js, starting from installation and setup to creating servers and handling routes. It explains the use of middleware and package management with npm. The guide includes practical examples and code snippets to help beginners understand and implement backend services effectively.

  3. 3
    Article
    Avatar of devtoDEVยท1y

    โšก๐Ÿš€ ReactJS, TypeScript, Vite with Redux and TanStack (React Query) In Practice โš›๏ธ

    Learn how to combine Redux with Thunk and React Query (TanStack) for managing client-side and server-side state in a ReactJS application. The guide explains setting up a Node.js Express server to handle CRUD operations and provides a step-by-step implementation of the frontend using Vite, TypeScript, Redux, and React Query. This setup leverages Redux for local UI state and React Query for asynchronous data fetching, caching, and synchronization with the server.

  4. 4
    Article
    Avatar of platformaticPlatformaticยท1y

    Building a reliable Node.js application

    Building efficient Node.js applications is key to handling traffic spikes and reducing response times. Key approaches include effective caching at multiple levels, using message queues for non-critical tasks, avoiding holding state, careful architectural decisions, and applying the Single Responsibility Principle. These strategies help optimize resource use, enhance scalability, and improve user experience.

  5. 5
    Article
    Avatar of platformaticPlatformaticยท1y

    Building a Reliable Node.js Application

    Ensuring stable uptime and handling traffic spikes in a Node.js application requires understanding user behavior and having robust monitoring in place. Emphasize stability by making your application predictable and minimizing errors. Monitor failure rates closely, understand data access patterns, manage query complexity effectively, ensure proper indexing, and pool database connections to maintain consistent performance. These practices help in building a stable and reliable Node.js application.

  6. 6
    Article
    Avatar of platformaticPlatformaticยท1y

    Undici v7 is here

    The Node.js Undici Working Group has announced the release of Undici v7, a modern HTTP client library. The new version features stricter compliance with the fetch() specification, the introduction of WebSocketStream, a groundbreaking caching implementation, and customizable interceptors. The release also includes several optimizations to align with upcoming Node.js releases. The update removes support for third-party Blob, FormData, and AbortController classes, which were previously undocumented. Additionally, the new caching system can interface with a SQLite cache store. The community is encouraged to contribute to the project, which continues to be an integral part of the Node.js ecosystem.

  7. 7
    Article
    Avatar of platformaticPlatformaticยท1y

    Bringing HTTP Caching to Node.js

    Undici v7.0.0 brings client-side HTTP caching to Node.js, aligning with RFC-9111 specifications. This new feature allows developers to enhance the performance and efficiency of their applications by seamlessly integrating caching into HTTP workflows. The caching system in Undici can be configured with a variety of options and offers default in-memory and SQLite cache stores. This development marks a significant milestone in achieving standards-compliant HTTP caching for the Node.js ecosystem.

  8. 8
    Article
    Avatar of systemdesigncodexSystem Design Codexยท1y

    Intro to GraphQL

    GraphQL is a powerful open-source language for querying and manipulating data, aiming to address issues common in RESTful APIs. Developed initially by Facebook in 2012 and publicly released in 2015, GraphQL stands out by allowing clients to specify exactly what data they need, reducing both over-fetching and under-fetching of data. Key features include declarative queries, hierarchical data structure, type safety, and support for real-time data with subscriptions. Implementing a GraphQL server involves setting up a web server, defining schemas, and handling requests efficiently. While GraphQL offers significant advantages like flexible data fetching and improved analytics, it also has drawbacks such as potential performance issues with complex queries and reduced suitability for small applications.

  9. 9
    Article
    Avatar of aiAIยท1y

    I've build a platform for everything-AI!

    MyAiHub.ai is a newly launched platform for AI enthusiasts and professionals, designed to consolidate AI resources in one place. It was built using React, TypeScript, MongoDB, and Express.js. The project is open to feedback and aims to evolve with the AI community's needs.

  10. 10
    Article
    Avatar of syncfusionSyncfusionยท1y

    Axios and Fetch API? Choosing the Right HTTP Client

    Axios and Fetch API are popular for handling HTTP requests, each with distinct features. Axios is more feature-rich, making it suitable for complex projects, while Fetch API is lightweight and native to browsers, ideal for simpler projects. Axios excels in error handling, automatic JSON parsing, and HTTP interception, whereas Fetch API offers more straightforward, fine-grained control without external dependencies. Both tools cater to different project needs based on complexity and functionality.

  11. 11
    Article
    Avatar of appsignalAppSignalยท1y

    Unit Testing in Node.js With Jest

    Unit tests improve the reliability and robustness of backend applications. Jest is a popular, free JavaScript testing framework known for its intuitive API, zero-configuration approach, and native integration with tools like Babel and Webpack. Jest supports writing unit, integration, and snapshot tests in JavaScript and TypeScript. Its main features include an intuitive BDD-like API, human-readable assertions, high configurability, and robust mocking capabilities. To integrate Jest into a Node.js project, one needs to install Jest, set up a configuration file, organize test files, and run tests to verify their functionality. Advanced users can explore Jest's extensive documentation and community resources for more in-depth guidance and support.

  12. 12
    Article
    Avatar of newstackThe New Stackยท1y

    Vercel Makes Changes to Next.js To Simplify Self-Hosting

    Vercel has made significant updates to Next.js to simplify self-hosting. This includes new documentation and video resources explaining self-hosting steps, improvements to the cache API with the introduction of 'use cache', and replacing the WebAssembly-based image optimization library with Sharp. These changes aim to make Next.js more efficient and easier to configure, ultimately enhancing developers' ability to self-host applications.

  13. 13
    Article
    Avatar of amandeep58Backend Developerยท1y

    Building a Movie Website: My Journey to Learning Backend with PHP and AJAX

    Developing a movie website led to an in-depth exploration of backend development with PHP and AJAX. Key features include dynamic watch pages, real-time like/dislike systems, favorite movie management, collections management for admins, bulk movie additions, multi-language support, a user authentication system, and view tracking. The project successfully bridged the gap between frontend and backend development, with plans to explore Node.js in the future.

  14. 14
    Article
    Avatar of communityCommunity Picksยท1y

    Scheduling Tasks with CRON Jobs in Node.js

    Learn how to set up and manage CRON jobs in Node.js to schedule tasks at specific intervals, such as backups, logging, notifications, and cleanups. The guide covers installing the 'node-cron' and 'express' packages, writing and running CRON jobs, understanding the syntax, and implementing best practices and potential pitfalls.

  15. 15
    Article
    Avatar of bytesdevBytes by ui.devยท1y

    Node strikes back

    Node.js 23 has introduced significant improvements including stable require() support for ES Modules, an experimental --experimental-strip-types flag for TypeScript, a stabilized task runner, and glob pattern support in the built-in test runner. The article also discusses advancements in object sync engines by Convex, comparing their approach with frameworks like Replicache. Additionally, various notable tech articles and updates are highlighted.

  16. 16
    Article
    Avatar of telerikTelerikยท1y

    Mapping Over Promises in JavaScript

    Learn how to properly handle async/await operations when mapping over arrays in JavaScript. The post explores common mistakes with async operations and introduces three methods to correctly map over promises: using a for...of loop for sequential processing, Promise.all for parallel execution, and the npm package p-map to control concurrency. Improve your understanding and effectiveness in dealing with async operations to prevent bottlenecks and potential memory issues.

  17. 17
    Article
    Avatar of devtoDEVยท1y

    Homemade GPT JS

    A minimal re-implementation of Karpathy's minGPT using TensorFlow.js is introduced for educational purposes. This concise implementation, under 300 lines of code in TypeScript, allows users to train, experiment with parameters, and generate predictions directly in the browser using WebGPU or a Node.js environment. Various files including model.ts, config.ts, and trainer.ts are provided for detailed understanding and experimentation via a web or Node.js playground.

  18. 18
    Article
    Avatar of asayerasayerยท1y

    Secure Cookies and HTTPOnly Attributes for Better Security

    Cookies play an important role in web development by storing client-side information, but they can be vulnerable to attacks if not properly secured. The Secure attribute ensures cookies are only sent over HTTPS connections, while the HTTPOnly attribute prevents client-side scripts from accessing cookies, thereby protecting against Cross-Site Scripting (XSS) attacks. Combining these attributes enhances data confidentiality and integrity. The post includes examples for setting these attributes in Express.js and best practices for implementation to minimize potential security risks.

  19. 19
    Article
    Avatar of bunBunยท1y

    How Bun supports V8 APIs without using V8 (part 2)

    Bun aims to support V8 APIs without using V8 by simulating V8's memory layout using JavaScriptCore (JSC) types. Key methods include representing tagged pointers, managing maps and objects, and ensuring that native modules precompiled for the V8 API still function properly. Additionally, Bun implements Node.js-style module registration, allowing easier writing and testing of native addons. Future work will address JSC's garbage collector interaction, representation of various JavaScript values, and other parts of the V8 compatibility layer.

  20. 20
    Article
    Avatar of webdevbeehiivWeb Developerยท1y

    JavaScript Auth ๐Ÿ”, Atomics API โš›๏ธ, Fastest HTTP Server ๐Ÿš€, Open-Source Photo Management ๐Ÿ“ธ

    This post includes a beginner-friendly guide to building custom authentication systems in JavaScript, tips for using the Atomics API to prevent race conditions in Node.js, an exploration of the trend of rewriting Node.js tools in faster languages like Rust, Go, and Zig, and an overview of the fastest Node.js HTTP server compatible with Express.js. It also covers open-source alternatives for private photo management and provides tips for enhancing Vue components with TypeScript.

  21. 21
    Article
    Avatar of logrocketLogRocketยท1y

    Handling memory leaks in Rust

    Discover how curl-impersonate can bypass anti-bot measures in Node.js for web scraping. Learn techniques for handling frontend data discrepancies using WebSockets and Docker Compose. Explore the benefits of lazy initialization in Rust 1.80. Design visually appealing React Native UIs with adaptive layouts and responsive scaling.