NestJs in Practice (with MongoDB)

所在平台: Udemy

课程主页: https://www.udemy.com/course/nestjs-course/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:NestJs 实践(与 MongoDB) 课程概述: 如果您还不知道 NestJs,它就像 Angular,但用于后端。使用 NestJs,我们可以用与 Angular 前端相同的概念和面向对象的 API 来编写后端:组件、服务、模块、管道等。NestJs 也与您可能已经熟悉的流行库非常相似,例如 Java 生态系统中的 Spring 库或 C# 生态系统中的 ASP.NET MVC。 课程内容: 在本课程中,您将从零开始学习如何设计和开发一个 NestJs 后端,该后端将以 REST API 形式存在,并使用 Mongoose ODM(对象文档映射)库查询 MongoDB 数据库。我们将提供一个完整的 CRUD 示例,展示如何使用 NestJs 执行最常见的 REST 数据检索和数据修改操作。课程假设您没有 NestJs、MongoDB 或 Mongoose 的知识,我们将从头开始解释所有内容。我们将涵盖所有基本的 NestJs 概念,如模块、控制器和可注入服务。 我们将详细学习如何使用基于装饰器的方法验证业务数据(使用 @IsString()、@IsPhoneNumber() 等装饰器),并利用内置的 NestJs 验证管道。我们还将使用 NestJs 实现常见的后端安全功能,如用户身份验证、基于角色的访问控制(RBAC)授权、错误处理,并涵盖更多高级的 NestJs 概念,如过滤器、管道、守卫、拦截器和中间件。 课程大纲: 本课程涵盖以下主题: - NestJs 介绍 - 在热重载和调试模式下运行 NestJs - 编写第一个 NestJs REST 端点 - NestJs 模块、控制器和可注入服务 - MongoDB 介绍 - 设置云 MongoDB 数据库 - Mongoose ODM 库介绍 - 从 NestJs REST 端点查询 MongoDB - NestJs 和 MongoDB 的完整 CRUD 示例 - NestJs 过滤器和自定义错误处理 - NestJs 管道,构建自定义管道 - 使用 class-validator 和验证管道进行数据验证 - NestJs 中间件 - 使用 NestJs 进行用户身份验证 - NestJs RBAC(基于角色的访问控制)授权 - NestJs 守卫 您将学到什么: 完成本课程后,您将能够自信地设计和开发使用 NestJs 的应用程序。您将学习到设计和开发生产就绪安全后端所需的所有实际知识。

课程评论(0条)

课程详情

This Course in a NutshellIf you don't know NestJs, it's like Angular but for the backend. With it, we can write our backend using the same concepts and object-oriented APIs that we already use to structure our Angular frontend: components, services, modules, pipes, etc.NestJs is also quite similar to popular libraries that you might already be used to, such as, for example, the Spring library in the Java ecosystem, or ASP.NET MVC for the C# ecosystem.Course OverviewIn this course, you are going to learn from scratch how to design and develop a NestJs backend that will take the form of a REST API that queries a MongoDB database using the Mongoose ODM (Object Document Mapping) library. We will be providing a complete CRUD example showing how to perform the most common REST data retrieval and data modification operations using NestJs.No prior NestJs, MongoDB or Mongoose knowledge is assumed as we will explain everything from scratch. We will cover all the essential NestJs concepts such as Modules, Controllers and injectable services.We will learn in detail how to validate business data using a decorator based approach (with decorators like @IsString(), @IsPhoneNumber(), etc.) by leveraging the built-in NestJs Validation pipe.We will also implement using NestJs commonly needed backend security functionality such as User Authentication, RBAC (Role-Based Access Control) Authorization, error handling, and cover more advanced NestJs concepts such as Filters, Pipes, Guards, interceptors and middleware.Table of ContentsThis course covers the following topics:Introduction to NestJsRunning NestJs in Hot Reload and Debug modeWriting our first NestJs REST endpointNestJs Modules, Controllers and injectable ServicesIntroduction to MongoDBSetting up a cloud MongoDB databaseIntroduction to the Mongoose ODM libraryQuerying MongoDB from a NestJs REST endpointComplete CRUD example with NestJs and MongoDBNestJs Filters and custom error handlingNestJs Pipes, building a custom pipeData Validation with class-validator and the Validation pipeNestJs MiddlewareUser Authentication with NestJsNestJs RBAC (Role-Based Access Control) AuthorizationNestJs GuardsWhat Will You Learn In this Course?After taking this course, you will feel comfortable designing and developing applications using NestJs. You will have learned everything that you need to know in practice for designing and developing production-ready secure backends using the NestJs framework.

课程标签

0人关注该课程

主题相关的课程