|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/express-prisma-orm-fundamentals/
课程评论:没有评论
**课程名称:** Express.js 和 Prisma ORM 查询基础 **课程概述:** 本课程将带领您踏上一段实践之旅,学习如何使用 Express.js 和 Prisma ORM 构建高效、可扩展的后端 API。您将掌握将 Express.js 应用与数据库无缝集成的核心技能。 **目标学员:** * 初次学习 Express.js 和 Prisma 的开发者。 * 希望提升数据库查询技能的后端开发者。 * 希望将 Prisma ORM 集成到项目中的全栈开发者。 * 旨在优化和扩展数据库操作的软件工程师。 * 对使用 PostgreSQL 进行高效数据库管理感兴趣的数据爱好者。 * 从其他后端框架转向 Node.js 和 Express 的任何开发者。 **课程内容概要:** 1. **入门介绍:** 课程概览。 2. **开发准备:** * 模块介绍。 * Windows & MacOS VSCode 新手指南。 * 项目设置(ESLint, Prettier, 代码格式化)。 * Docker Desktop 新手指南。 * 使用 Docker 设置 PostgreSQL。 * 使用 Docker 设置 Express 和 Prisma。 3. **基础:Prisma Schema 开发:** * 模块介绍。 * ERD(实体关系图)入门。 * 使用 Prisma Schema 定义数据库表。 * 使用 Prisma 执行迁移。 * 常用数据类型:字符串、数字、布尔值。 * 日期和时间字段。 * 必需、可选和默认值。 * 唯一约束。 * 主键创建。 * 外键和关系创建。 * 级联删除和引用操作。 * 多对多关系。 * 一对一关系。 * 反向关联字段。 * 完成 Prisma Schema。 * 使用 Prisma Studio。 * 使用 Docker 自动化 Prisma 迁移。 4. **基础:数据操作:** * 模块介绍。 * 设置 Express 路由和控制器。 * 插入/创建新记录。 * 使用 Swagger 进行 Express API 文档。 * 使用 Node Monitor 实现代码自动更新。 * 批量插入。 * 更新记录。 * Upsert(更新或插入)操作。 * 批量更新。 * 处理一对多插入。 * 处理一对一插入。 * 处理多对多插入。 * 删除记录。 * 批量删除。 5. **基础:数据库查询:** * 模块介绍。 * 使用 Docker 自动化数据库 Seeding。 * 检索数据:`findMany`。 * 使用 `where` 过滤记录。 * 处理动态参数和发送数据。 * 使用 `orderBy` 对结果排序。 * 检索第一条和最后一条记录。 * 使用 Prisma 实现分页。 * 使用 `distinct()` 去重。 6. **基础:过滤:** * 模块介绍。 * 使用逻辑运算符。 * 使用比较运算符。 * 使用模式匹配进行搜索。 * 列表过滤。 * 使用 `between()` 进行范围值过滤。 * 使用列表切片限制查询。 7. **基础:查询关系和 JOIN:** * 模块介绍。 * SQL 内连接 (Inner Join)。 * 使用别名。 * 在 Prisma 中使用原始 SQL 查询。 * 查询一对一关系。 * 查询多对多关系。 * SQL 左连接 (Left Join)。 * SQL 全连接 (Full Join)。 8. **基础:聚合和分组:** * 模块介绍。 * 使用 `Count` 计数记录。 * 使用 `Sum` 求和。 * 使用 `AVG` 计算平均值。 * 使用 `Group By` 进行数据聚合。
Embark on a practical journey to building efficient and scalable backend APIs with our "Express API & Prisma ORM Query Fundamentals" course. This hands-on program focuses on equipping you with the core skills needed to seamlessly integrate your Express.js applications with databases using Prisma ORM.Who this course is for:Beginner Developers learning Express.js and Prisma for the first time.Backend Developers looking to enhance their database querying skills.Full-Stack Developers who want to integrate Prisma ORM into their projects.Software Engineers aiming to optimize and scale database operations.Data Enthusiasts interested in learning efficient database management with PostgreSQL.Anyone Transitioning to Node.js & Express from other backend frameworks.Course Overview:## 1 Introductions1. Course Introduction## 2 Preparing For Development1. Module Primer2. New Developers Guide: VSCode for Windows & MacOS3. Project Setup: ESLint, Prettier, and Formatting4. New Developers Guide: Docker Desktop5. Setting up PostgreSQL with Docker6. Setting up Express and Prisma with Docker## 3. Fundamentals - Developing a Prisma Schema1. Module Primer2. ERD Introduction (Entity Relationship Diagram)3. Defining Database Tables with Prisma Schema4. Running Migrations with Prisma5. Common Data Types: Strings, Numbers, Booleans6. Date and Time Fields7. Required, Optional, and Default Values8. Unique Constraints9. Creating Primary Keys10. Creating Foreign Keys and Relations11. Cascade Delete & Referential Actions12. Many-to-Many Relationships13. One-to-One Relationships14. Opposite Relation Fields15. Finalizing Prisma Schema16. Using Prisma Studio17. Automating Prisma Migration with Docker## 4. Fundamentals - Data Operations1. Module Primer2. Setting Up Express Routes and Controllers3. Inserting / Creating New Records4. Express API Documentation with Swagger5. Auto Code Updates with Node Monitor6. Implementing Bulk Inserts7. Updating Records8. Upsert (Update or Insert)9. Bulk Updates10. Handling One-to-Many Inserts11. Handling One-to-One Inserts12. Handling Many-to-Many Inserts13. Deleting Records14. Bulk Delete## 5. Fundamentals: Querying the Database1. Module Primer2. Automating Seeding the Database with Docker3. Retrieving Data: findMany4. Filtering Records with where5. Handling Dynamic Parameters and Sending Data6. Sorting Results with orderBy7. Retrieving First and Last Record8. Implementing Pagination with Prisma9. Removing Duplicate Records with `distinct()`## 6 Fundamentals: Filtering1. Module Primer2. Using Logical Operators3. Comparison Operators4. Searching with Pattern Matching5. List Filtering6. Using between() for Value Ranges7. Limiting Queries with List Slicing## 7 Fundamentals: Querying Relationships and Join1. Module Primer2. SQL Inner Join3. Using Aliases4. Using Raw SQL Queries in Prisma5. Querying One-to-One Relationships6. Querying Many-to-Many Relationships7. SQL Left Join8. SQL Full Join## 8 Fundamentals: Aggregation and Grouping1. Module Primer2. Counting Records with Count3. Summing Values with Sum4. Calculating Averages with AVG5. Using Group By to Aggregate Data