Best of Express.js2022

  1. 1
    Article
    Avatar of communityCommunity Picks·4y

    How To Use Multithreading in Node.js

    Since JavaScript is single-threaded, it blocks the main thread and no other code executes until the task completes. To understand this, you will create a Node.js program with an infinite loop so that it doesn’t exit when run. Using nano or your preferred text editor, create and open the process.js file: nano process.

  2. 2
    Article
    Avatar of anavidAnalytics Vidhya·4y

    Creating a Music Streaming Backend Like Spotify Using MongoDB

    Creating a Music Streaming Backend like Spotify using MongoDB. This article was published as a part of the Data Science Blogathon. In this article, I will show you how to handle uploading songs to the database, streaming music, user authentication, the ability to choose your favorite songs, and a recommendation engine. We will add our code in a new file named ‘auth.ts’ in a new file.ts.

  3. 3
    Article
    Avatar of snykSnyk·3y

    How to build a secure API gateway in Node.js

    API gateways can provide a clear path for your front-end applications (e.g., websites and native apps) to all of your back-end functionality. They can act as aggregators for the microservices and as middleware to handle common concerns, such as authentication and authorization. The most popular choice for Node.

  4. 4
    Article
    Avatar of changelogChangelog·4y

    remult/remult: A CRUD framework for full stack TypeScript

    Remult is a full-stack CRUD framework that uses your TypeScript entities as a single source of truth for your API, frontend type-safe API client and backend ORM. It abstracts away repetitive, boilerplate, error-prone and poorly designed code on the one hand. Using Remult means having the ability to handle any complex scenario by controlling the backend in numerous ways.

  5. 5
    Article
    Avatar of logrocketLogRocket·4y

    Building a full-stack TypeScript application with Turborepo

    Turborepo is a popular monorepo tool in the JavaScript/TypeScript ecosystem. It’s fast, easy to use and configure, and serves as a lightweight layer that can easily be added or replaced.

  6. 6
    Article
    Avatar of appsignalAppSignal·4y

    Build a CRUD App with Node.js and MongoDB

    MongoDB is an open-source, cross-platform, document-oriented database program. MongoDB’s horizontal, scale-out architecture can support huge volumes of both data and traffic. The application will connect to a MongoDB database and allow users to create, read, update, and delete blog posts. Make a services/BlogService.js file in your project root directory and add the code snippet below.

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

    Send Real-Time Notifications with Socket.io and Node.js

    Express.js is a fast, minimalist framework that allows us to create real-time, bi-directional communication between clients and a Node.js server. This tutorial assumes that you have a basic knowledge of building web applications with Express and Node.io. In this section, you’ll learn how to send Setting up Express.JS on anode.js on a node.js.

  8. 8
    Article
    Avatar of logrocketLogRocket·3y

    Build a full-stack application with AdminJS

    AdminJS is an open source Node.js admin panel that promises to do just that: AdminJS. The tutorial portion of this post will demonstrate how to use AdminJS to build a full-stack application. It offers a range of customizability, it provides a REST API that can be integrated into other applications.

  9. 9
    Article
    Avatar of communityCommunity Picks·4y

    How to Implement Redis as Cache in Node.js

    Redis is an open-source (BSD licensed) data structure store used as a database, cache, message broker, and streaming engine. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.

  10. 10
    Article
    Avatar of hashnodeHashnode·4y

    Learn how to build a microservice using Node.js and RabbitMQ.

    Learn how to build a microservice using Node.js and RabbitMQ. This tutorial will teach you about microservices and how to create a simple e-commerce microservice architecture with two services; product and order. In the following section, we will look at some of the prerequisites for this tutorial. Make another folder for the routes, call it routes, then inside it, have a file routes.

  11. 11
    Article
    Avatar of foojayioFoojay.io·3y

    Two Million Java Developers on Visual Studio Code!

    For the November update, we are bringing you new code editing features, such as postfix completion and optimized organize imports. In addition, we've made some visual enhancements to the Spring components. We are continuing to add more improvements around "organize import" scenarios and you can find all our future plans in this GitHub issue.

  12. 12
    Article
    Avatar of gcgitconnected·4y

    Microservices with Node.js, Kubernetes, and RabbitMQ

    Kubernetes (‘K8s’) is an open source system for automating and managing container orchestration that grew out of Google’s Borg, and is now maintained by the Cloud Native Computing Foundation. A microservice architecture means that your app is made up of many smaller, independent applications RABBITMQ_URL. The orders/index.js will be listening for an ‘ORDER’ message and as soon as it gets that message.

  13. 13
    Article
    Avatar of dzDZone·4y

    Hide Your API Keys With an API Proxy Server

    API key can be stolen and used by people that are not actually own this key. Open the OpenWeatherMap API website, make a free account, go to My API keys and create one. The main concept is to hide your public API keys behind an API Proxy Server in order to prevent users from overusing the API and crashing the server. The other one is to add a rate limiter.

  14. 14
    Article
    Avatar of hashnodeHashnode·4y

    Fullstack App built with ReactJS, NodeJS, ExpressJs and Redis-OM

    Fullstack App built with ReactJS, NodeJS, ExpressJs and Redis-OM Overview. We'll be building a Fullstack app with Redis Database for storing the data. Redis is an in-memory key-value store that is often used as a cache to make traditional databases faster. It gives us the methods to read, write and remove a specific Entity and lastly. A Repository is the main interface into Redis OM.

  15. 15
    Article
    Avatar of telerikTelerik·3y

    Modern APIs With Fastify in Node.js

    JavaScript has become the most popular programming language in the world. Fastify is a modern web framework for Node.js that aims to provide the best developer experience with the least overhead and a powerful plugin architecture. Fastify was inspired by Express so the syntax looks familiar. It offers a plugin model similar to Hapi (another Node.

  16. 16
    Article
    Avatar of denoDeno·4y

    Build Apps in Deno with Frameworks such as React, Vue, Express, and more.

    With Deno 1.28, you can now build with these JavaScript frameworks, such as Express, Vue, and more. This blog post will show you how to get started with these frameworks in Deno: - Express - React - Vue.

  17. 17
    Article
    Avatar of logrocketLogRocket·4y

    Understanding API key authentication in Node.js

    Using API keys has an advantage if you want to set a limit or track how often a particular user is using an API. By using API keys, the user doesn’t need to worry about multi-factor authentication with their username and password.

  18. 18
    Article
    Avatar of asayerasayer·4y

    Serving Dynamic HTML using Embedded JavaScript (EJS)

    Embedded JavaScript (EJS) is a JavaScript templating engine that lets you generate dynamic HTML and EJS tags. This article will teach you how to use EJS to serve dynamic HTML files in your applications. The EJS syntax is very similar to HTML, which makes it easy to learn. EJS does not support layouts out of the box, but they can be implemented by creating partials for each template. To use partials.

  19. 19
    Article
    Avatar of communityCommunity Picks·4y

    Advanced TypeScript Patterns: API Contracts

    This post will use axios and express for the API client and server libraries respectively. The first step is to realize that your API client library and server framework already support type parameters. This is a very lightweight and pragmatic API spec. It’s not always a good idea to colocate your application model types, like User, with their respective API contracts.

  20. 20
    Article
    Avatar of towardsdevTowards Dev·4y

    Learn How To Send Emails Using Nodemailer, With Node.js And React.js- [APIlayer Contact Form]

    Nodemailer, With Node.js and React.js, we’ll learn how to send emails from a Node. JS application. Follow this step-by-step guide for developing a demo application and implement NodeMailer in your Node.JS application.

  21. 21
    Article
    Avatar of devgeniusDev Genius·4y

    NodeJS Gateway — Part 1: Initial Setup

    NodeJS Gateway is part of a series of how to build a payment gateway or solution using Javascript. The Gateway will be using TypeScript which I believe is an advantage over using just JavaScript to avoid errors that may have sneaked through to the runtime. It all comes to which one you’re well conversant about.