Nest.js: A Progressive Node.js Framework
eBook - ePub

Nest.js: A Progressive Node.js Framework

Hit the ground running with Nest.js

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Nest.js: A Progressive Node.js Framework

Hit the ground running with Nest.js

About this book

Learn all that you need to get started with this well-organized modular framework

Key Features

  • Explore various aspects of the Nest.js framework through a working project
  • Define the architecture of your application using Angular Universal
  • Test your application with the Jest testing network

Book Description

Nest.js is a modern web framework built on a Node.js Express server. With the knowledge of how to use this framework, you can give your applications an organized codebase and a well-defined structure. The book begins by showing how to use Nest.js controllers, providers, modules, bootstrapping, and middleware in your applications. You'll learn to use the authentication feature of Node.js to manage the restriction access in your application, and how to leverage the Dependency Injection pattern to speed up your application development. As you advance through the book, you'll also see how Nest.js uses TypeORM—an Object Relational Mapping (ORM) that works with several relational databases. You'll use Nest.js microservices to extract part of your application's business logic and execute it within a separate Nest.js context. Toward the end of the book, you'll learn to write tests (both unit tests as well as end-to-end ones) and how to check the percentage of the code your tests cover. By the end of this book, you'll have all the knowledge you need to build your own Nest.js applications.

What you will learn

  • Handle user authentication and access with the @nestjs/passport package
  • Store and retrieve data from your database by connecting TypeORM
  • Use web sockets in your applications
  • Implement microservices using a custom RabbitMQ transport
  • Create a swagger v2 specification document with the swagger module
  • Use the CQRS package for designing and laying out your application

Who this book is for

This book is designed for programmers who want to build modern frameworks with Nest.js. To easily grasp the concepts explained in this book basic knowledge of JavaScript is required.

]]>

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Nest.js: A Progressive Node.js Framework by Greg Magolan,Patrick Housley,Adrien de Peretti,Jay Bell,David Guijarro in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in JavaScript. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Preface
  2. 1. Introduction
  3. 2. Overview
  4. 3. Nest.js authentication
  5. 4. Dependency Injection system of Nest.js
  6. 5. TypeORM
  7. 6. Sequelize
  8. 7. Mongoose
  9. 8. Web sockets
  10. 9. Microservices
  11. 10. Routing and request handling in Nest.js
  12. 11. OpenAPI (Swagger) Specification
  13. 12. Command Query Responsibility Separation (CQRS)
  14. 13. Architecture
  15. 14. Testing
  16. 15. Server-side Rendering with Angular Universal