Best of Express.js2024

  1. 1
    Article
    Avatar of devtoDEV·2y

    Building a CRUD Application with the MERN Stack: A Step-by-Step Guide

    This guide walks you through building a CRUD application using the MERN stack. It covers setting up the backend with Express, MongoDB, and Mongoose, creating API routes for CRUD operations, and setting up the frontend with React. The frontend components include TodoList, TodoItem, and TodoForm, and the guide explains how to integrate these components and run the application.

  2. 2
    Article
    Avatar of communityCommunity Picks·2y

    Writing A Microservice Using Node.js

    The post discusses the benefits of using Node.js for web services development and explains how to build a microservice using Node.js. It covers topics such as the tech stack, database choice, web framework, validation, configuration, static analysis, testing, logging, metrics, monitoring stack, local infrastructure with Docker, and continuous integration. The code examples and explanations provide valuable insights for Node.js web developers.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    Build a Caching Layer in Node.js With Redis

    Learn how to build a caching layer in Node.js using Redis to improve the performance of your backend and increase the number of concurrent users. Redis is an in-memory data repository that provides extreme performance and efficiency for caching. By encapsulating caching logic in a middleware function, you can choose which routes to apply caching to, reducing code duplication and improving maintainability. This step-by-step tutorial shows you how to set up a Redis caching layer in an Express application and provides extra tips on compressing data for better memory utilization.

  4. 4
    Article
    Avatar of appsignalAppSignal·2y

    How to Perform Data Validation in Node.js

    Data validation is crucial in both frontend and backend applications to ensure data correctness, consistency, and security. This tutorial focuses on implementing data validation in Node.js using the express-validator library. It covers the importance and benefits of validating incoming requests, explains validation chains and schema-based validation, and provides sample code for validating route parameters, query parameters, and body data in an Express application.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    The V8 JavaScript Engine

    This post provides an in-depth explanation of the V8 JavaScript engine, its role in Node.js, and how it works. It also mentions the possibility of creating your own JavaScript runtime using V8.

  6. 6
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    Dive into Backend Development by Building a CRUD API with Node and MongoDB

    Learn backend development by building a CRUD API using Node, Express, and MongoDB.

  7. 7
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    MERN Stack Roadmap – How to Learn MERN and Become a Full-Stack Developer

    Learn the MERN stack, a widely-used technology stack for building efficient and scalable web applications. Get started with HTML, JavaScript, and CSS. Explore React for frontend development. Understand REST APIs and backend server development using Express and Node. Learn about MongoDB and Mongoose for database management. Write tests for your MERN stack applications. Get familiar with Git for version control. Deploy your MERN stack applications. Access top resources for learning the MERN stack and try out 10 project ideas today!

  8. 8
    Article
    Avatar of arcjetArcjet·2y

    A Modern Approach to Secure APIs with Node.js, Express, TypeScript, and ESM

    Learn to build a modern, secure Node.js API with Express, TypeScript, and ESM. Configure TypeScript with Express, enable hot-reloading with nodemon, and secure your API using Arcjet for rate-limiting and bot protection. The guide includes steps to initialize a Node.js project, configure a TypeScript setup, set up an Express server, and integrate security measures while ensuring smooth development with hot-reloading.

  9. 9
    Article
    Avatar of devtoDEV·2y

    Modern API Development with Node.js, Express, and TypeScript using Clean Architecture

    This guide covers building a modern API using Node.js, Express, and TypeScript, with a focus on Clean Architecture principles. Topics include setting up the project, structuring it with Clean Architecture, implementing various layers such as domain, use cases, infrastructure, and interface. It also touches on Dependency Injection, error handling, data validation, real database integration with MongoDB, authentication with JWT, logging with Winston, environment configuration, CI/CD, and project documentation with Swagger.

  10. 10
    Video
    Avatar of communityCommunity Picks·2y

    Modern Redis Crash Course: Backend with Express, TypeScript and Zod

    Learn how to implement Redis in a Node.js project using Express and TypeScript, with a focus on understanding Redis as an in-memory data store and its use cases for caching and primary data storage. The course covers setting up a Redis client, creating middleware for standardized API responses, and using Zod for schema validation. Using a project-based approach, you'll build a restaurant directory backend with endpoints for viewing, ranking, searching, and getting weather information.

  11. 11
    Article
    Avatar of communityCommunity Picks·2y

    Deploy Your Express Backend in Vercel for Free 🚀⚡

    Learn how to deploy your Node.js Express application on Vercel for free using a few simple steps. Create a basic Express app, configure the vercel.json file to route requests, and use the Vercel CLI for deployment. Understand important considerations when switching to Vercel’s serverless architecture, such as handling database connections, websockets, and efficient error handling.

  12. 12
    Article
    Avatar of systemweaknessSystem Weakness·2y

    MERN Stack Development Guide

    MERN Stack is a comprehensive JavaScript framework consisting of MongoDB, Express.js, React, and Node.js. It offers advantages like using a single language for frontend and backend development, code reusability, and a large supportive community. To start MERN development, install Node.js and npm, and set up the Express.js server. Connect to MongoDB, implement CRUD operations, handle errors, and follow security best practices. Test the API and document it using tools like Swagger or Postman.

  13. 13
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Create a CRUD API – NodeJS and Express Project for Beginners

    Learn how to create a CRUD API with Node.js and Express using the REST architecture. Explore concepts like setting up a development environment, creating a server, handling CRUD operations, and testing the API with Postman.

  14. 14
    Article
    Avatar of devtoDEV·2y

    Object Oriented Express API

    Discover the benefits of using Object Oriented Programming in Node and Express, learn about important findings during the project, and see how the base controller can be utilized in other controllers.

  15. 15
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    What is the tRPC Library? Explained with a Demo Project

    tRPC is a type-safe TypeScript-based library that enhances the RPC API design for handling API requests and responses. It eliminates the need for traditional REST and Fetch APIs by using a query system that ensures data integrity between the client and server. By leveraging TypeScript and the Zod library, tRPC ensures that data types match between the front end and back end, preventing errors. This post explains tRPC's benefits, setup, and usage through a detailed demo project that integrates tRPC with React and Express.

  16. 16
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Deploy Your Node.js App on Azure

    Learn the basics of deploying a Node.js backend application to the Azure cloud platform. This guide covers setting up an Azure account, creating a simple Node.js app using Express, and deploying it using the Azure portal service integrated with VS Code.

  17. 17
    Article
    Avatar of communityCommunity Picks·2y

    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.