Best of Node.jsNovember 2023

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    Vite 5.0 is out!

    Vite 5.0 has been released, bringing new features and improvements to the popular JavaScript build tool. It now uses Rollup 4 for improved build performance and introduces server.warmup to improve startup time. Vite no longer supports older versions of Node.js, requiring version 18 or higher. Check out the Migration Guide for a smooth upgrade process.

  2. 2
    Article
    Avatar of javacodegeeksJava Code Geeks·2y

    Node.js Cheatsheet

    Node.js is an open-source, server-side runtime environment that allows developers to build scalable, high-performance web applications using JavaScript. It has gained popularity due to its versatility, single-language usage, and extensive ecosystem. Node.js has advantages like high performance, non-blocking I/O, cross-platform compatibility, real-time capabilities, and a large community of support. However, it also has limitations like single-threaded nature, limited multithreading, learning curve for asynchronous programming, debugging challenges, and managing complex code structures for asynchronous operations.

  3. 3
    Article
    Avatar of awstipAWS Tip·2y

    Building a CI/CD Pipeline for Node.js Application with Jenkins and Docker

    Building a CI/CD pipeline for Node.js applications with Jenkins and Docker allows for the seamless automation, containerization, and orchestration of the development process. Organizations are adopting these pipelines to deliver high-quality applications quickly and reliably. This article provides an overview of Jenkins, the prerequisites for setting up the pipeline, and a step-by-step guide to configure the pipeline.

  4. 4
    Article
    Avatar of bitBits and Pieces·2y

    Stop using “npm install” in your CI/CD pipeline

    This article compares npm install and npm ci commands, explains the options --legacy-peer-deps and --force, and provides a solution to common issues faced by developers. It also emphasizes the importance of using npm ci in CI/CD pipelines for stable builds.

  5. 5
    Article
    Avatar of bitBits and Pieces·2y

    3 Surprising Async/Await Pitfalls Every Web Developer Must Avoid!

    This article explores three common pitfalls that web developers may encounter when using async/await in JavaScript. It discusses the issue of callback hell and provides a solution using async/await. It also highlights the problem of synchronous function chaining and suggests an alternative approach. Lastly, it addresses performance issues that can arise when using synchronous loops and offers a solution utilizing the async map function.

  6. 6
    Article
    Avatar of communityCommunity Picks·2y

    Advanced Transaction Management with NestJS & TypeORM

    This article explores advanced transaction management techniques in NestJS and TypeORM. It covers the basics of transactions, different ways of implementing transactions, and a step-by-step guide to implementing advanced transaction management using interceptors, request-scoped repositories, and custom decorators. The article provides code examples and highlights the benefits of using transactions in database operations.

  7. 7
    Article
    Avatar of amplicationAmplication·2y

    Building Real-time Applications with Amplication and Kafka

    This article discusses the importance of real-time communication in modern applications and introduces Kafka as a tool for building real-time systems. It explains the components of Kafka and how it works on a publish-subscribe model. The article then demonstrates how to build an application with Kafka using Amplication, a platform that generates production-ready backend services. It provides step-by-step instructions for setting up an Amplication project, creating entities, adding a message broker and topics, configuring microservices, and adding custom Kafka communication logic. The article also highlights the benefits of using Amplication to speed up microservice development and ensure seamless event-driven communication.

  8. 8
    Article
    Avatar of bitBits and Pieces·2y

    Should you use Bun or Node.js or Deno in 2024?

    An article comparing the strengths and weaknesses of the JavaScript runtimes Bun, Node.js, and Deno for API development in 2024.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    Hello world performance: Bun vs Node.js

    Bun is a modern JavaScript runtime that aims to be faster than Node.js. Tests comparing Bun and Node.js for a 'hello world' use case show that Bun is about 40-50% faster, but it uses double the memory. The measurements used to compare the performance include response time, CPU usage, and memory usage.

  10. 10
    Article
    Avatar of weeklyvuenewsWeekly Vue News·2y

    Weekly Vue News #121 - Automatically Import Components

    Learn how to import components automatically in Vue 3. Discover the latest news about Nuxt 3. Get access to a bundle of amazing deals to master Vue.js with the Ultimate Vue Bundle.

  11. 11
    Article
    Avatar of awsplainenglishAWS in Plain English·2y

    Learning AWS Lambda, API Gateway, and S3 by Building Your Own QR Code Generation API

    This tutorial teaches how to create a custom QR code generator API using AWS Lambda, API Gateway, and S3. It provides step-by-step instructions for creating an S3 bucket, creating a Lambda function, and integrating an API Gateway to the Lambda function. The tutorial also includes code snippets and a sample website for testing the API.

  12. 12
    Article
    Avatar of sitepointSitePoint·2y

    How to Use Node.js with Docker — SitePoint

    This tutorial explains the benefits of running Node.js applications in Docker containers and how to create a practical development workflow.

  13. 13
    Article
    Avatar of salesforcedevsSalesforce Developers Blog·2y

    Building AI Applications with LangChain and Node.js

    Learn how generative AI can be used to query content, the concept of retrieval-augmented generation (RAG), and the features and applications of LangChain, a comprehensive toolkit for integrating AI-powered language capabilities into applications.

  14. 14
    Article
    Avatar of systemweaknessSystem Weakness·2y

    MongoDB Atlas, Mongoose, CRUD App: A Step-by-Step Tutorial for MERN Learners

    Learn how to build a full-stack MERN application with MongoDB Atlas, Mongoose, and React.js. The tutorial covers setting up the project, connecting to MongoDB Atlas, setting up the React application, and connecting the front end to the back end.

  15. 15
    Article
    Avatar of awstipAWS Tip·2y

    Serverless

    Serverless is a concept where developers only need to worry about the code and not the underlying architecture. In serverless, services like AWS Lambda handle the allocation of resources, deployment, and scaling automatically. The drawbacks of using a monolith include continuous running of machines, manual configuration, code deployment and management, and the need to scale up or down depending on user traffic. Serverless eliminates these concerns and charges on a per invocation basis. The code deployed on serverless platforms is in a sleep state until a user visits the website, at which point it switches to a start state and runs line by line before returning the response.