|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/introduction-to-sequelize-orm-w-expressjs-postgres/
课程评论:没有评论
**课程名称:Sequelize ORM 入门(结合 Express.js + PostgreSQL)** **课程概述:** 本课程旨在教授学员如何构建一个具备生产级别代码的简单后端。通过本课程,您将深入学习以下关键技术和实践: * **数据库设置:** 使用 Docker 设置本地 PostgreSQL 数据库,轻松避免本地安装数据库的繁琐。 * **后端开发:** 结合 Express.js 和 Sequelize ORM 来操作数据库,实现高效的数据管理。 * **代码测试:** 使用 Jest 进行代码测试,强调“未经验证的代码即为损坏的代码”的理念,确保代码质量。 * **代码结构与测试:** 学习如何组织代码以方便测试,包括 Express 中间件的测试。 * **Sequelize 最佳实践:** 掌握 Sequelize 的核心用法,包括模型注册、模型关联、作用域(scopes)的添加、简单查询的编写以及数据库迁移(migrations)等。 * **认证机制:** 利用 JWT 和 Bcrypt 实现用户认证和密码加密。 * **通用最佳实践:** 学习通用的生产级别代码编写习惯,例如将 Express 应用与服务器分离以方便测试、将模型逻辑与控制器分离、在响应中隐藏敏感信息等。 **课程特色:** 本课程与众不同之处在于,它注重培养学员对生产级别代码的理解,并塑造为每一行代码进行测试的习惯。与其他许多忽视测试的课程不同,本课程强调测试在软件开发中的极端重要性。 **目标学员:** 希望学习如何构建生产级别后端、掌握 Sequelize ORM、Express.js 以及如何在项目中有效进行测试的开发者。
Hi and welcome to this course! Here, you will learn A LOT about how to build a simple backend with production-level code. We are going to learn how to set up a local database with Docker, how to use Express.js with Sequelize as the ORM and manipulate the database, how to test our code with Jest and more importantly, how to structure our code to test it easily. We will also learn:Sequelize best practices (how to register models, how to register associations between models, how to add scopes, how to make simple queries, how to write migrations, etc.)JWT and Bcrypt to handle authentication and Testing with Jest (remember that untested code is broken code)Express middlewares and how to test themDocker and Docker Compose to set up a local database and avoid installing databases locallyBest practices in general (separating the Express app from the server for easier testing, separating model logic from the controller, hiding passwords from the response, etc.)This course is different as I am looking for you to learn how production-level code looks like and build the habit to test every line of code you write! Most courses skip testing, but the reality is that testing is so important on software development that it is unbelievable that most courses out there just skip them.