|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/nestjs-from-scratch/
课程评论:没有评论
课程名称:从零开始学习NestJS 课程概述:Nest (NestJS) 是一个用于构建高效、可扩展的 Node.js 服务器端应用程序的框架。它使用渐进式的 JavaScript,完全支持 TypeScript,同时也允许开发者使用纯粹的 JavaScript 编码。Nest结合了面向对象编程(OOP)、函数式编程(FP)和函数式响应编程(FRP)的元素。Nest在其背后使用强大的HTTP服务器框架,如 Express(默认)并可选择使用 Fastify。Nest为这些常见的 Node.js 框架(Express/Fastify)提供了一个抽象层,但同时也直接暴露其 API 给开发者,使开发者能够使用底层平台上众多第三方模块。 课程理念:近年来,得益于 Node.js,JavaScript 已成为前端和后端应用程序的“通用语言”,促成了 Angular、React 和 Vue 等优秀项目的诞生,提升了开发者的生产力,能够快速、可测试和可扩展地创建前端应用。然而,虽然存在很多优秀的库、工具可以用于 Node(和服务器端 JavaScript),但没有一个有效地解决了架构问题。Nest 提供了一种开箱即用的应用程序架构,让开发者和团队能够创建高度可测试、可扩展、低耦合且易于维护的应用程序。其架构受 Angular 的启发。 您将学习: - 熟悉 NestJS 框架及其组件 - 设计和开发执行 CRUD 操作的 REST API - 后端应用程序的身份验证和授权 - 使用 TypeORM 进行数据库交互 - 安全最佳实践、密码哈希和敏感信息存储 - 使用数据库进行数据持久化 - 编写符合行业标准的干净、可维护代码 - 利用 NestJS 命令行接口(CLI) - 使用 Swagger 测试后端服务 - 优化后端应用程序的日志记录 - 基于环境的配置管理和环境变量 - 实施数据验证并使用管道 - 使用 Guards 保护授权用户的端点 - 为持久层建模实体 - TypeScript 的最佳实践 - 使用 async-await 处理异步操作 - 使用数据传输对象(DTO) - 实践 JSON Web Tokens(JWT) - 单元测试 NestJS 应用程序 - 使用 React 管理框架创建基本的 CRUD 操作的管理门户 - 使用 NestJSX Crud 库创建 CRUD 端点 适合人群: - 具有基础 JavaScript 和/或 Node.js 理解的开发者 - 推荐有基本的 TypeScript 知识,但不是必需 - 中级 JavaScript 开发者希望深入后端开发 - 愿意在后端应用 TypeScript 的开发者 - 渴望学习如何开发高性能、安全且可用于生产的 REST API 的开发者 - 希望从零开始构建一个实际的、现实世界应用程序的开发者 - 希望转向后端开发的前端开发人员
Nest (NestJS) is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with and fully supports TypeScript (yet still enables developers to code in pure JavaScript), and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).Under the hood, Nest makes use of robust HTTP Server frameworks like Express (the default) and optionally can be configured to use Fastify as well!Nest provides a level of abstraction above these common Node.js frameworks (Express/Fastify), but also exposes their APIs directly to the developer. This gives developers the freedom to use the myriad of third-party modules which are available for the underlying platform.PhilosophyIn recent years, thanks to Node.js, JavaScript has become the "lingua franca" of the web for both front and backend applications. This has given rise to awesome projects like Angular, React, and Vue, which improve developer productivity and enable the creation of fast, testable, and extensible front-end applications. However, while plenty of superb libraries, helpers, and tools exist for Node (and server-side JavaScript), none of them effectively solve the main problem of - Architecture.Nest provides an out-of-the-box application architecture that allows developers and teams to create highly testable, scalable, loosely coupled, and easily maintainable applications. The architecture is heavily inspired by Angular.What you'll learnBecoming familiar with the NestJS framework and its componentsDesigning and developing REST APIs performing CRUD operationsAuthentication and Authorization for back-end applicationsUsing Typeform for database interactionSecurity best practices, password hashing, and storing sensitive informationPersisting data using a databaseWriting clean, maintainable code in line with industry standardsUtilizing the NestJS Command Line Interface (CLI)Using Swagger for testing back-end servicesImplement efficient logging in a back-end applicationEnvironment-based configuration management and environment variablesImplementing data validation and using PipesGuarding endpoints for authorized users using GuardsModeling entities for the persistence layerTypeScript best practicesHandling asynchronous operations using async-awaitUsing Data Transfer Objects (DTO)Hands-on experience with JSON Web Tokens (JWT)Unit testing NestJS applicationsCreate admin portal with basic crud operations using React admin frameworkCreate CRUD endpoints using NestJSX Crud libraryWhat you should knowHaving a basic understanding of JavaScript and/or NodeJSHaving a basic knowledge of TypeScript is recommended, but not requiredWho is this course if forIntermediate JavaScript developers who want to dive into back-end developmentAny developers willing to apply TypeScript on the back-endDevelopers eager to learn how to develop performant, secure, and production-ready REST APIs following best practicesDevelopers who want to follow building a practical, real-world application from zero to productionFront-end developers who want to move to the back-end development