Node. js: Building an advanced MVC-like project architecture

所在平台: Udemy

课程主页: https://www.udemy.com/course/nodejs-building-an-advanced-mvc-like-project-architecture/

课程评论:没有评论

第一个写评论        关注课程

课程简介

《Node.js:构建高级 MVC 类项目架构》课程概览 本课程专为已有 Node.js 基础或掌握其他后端语言开发经验的学生设计。课程将深入讲解如何构建和组织 Node.js 应用程序,重点在于搭建一套定制化的 MVC(Model-View-Controller)类架构,并融入多种编码模式。 **核心学习内容包括:** * **自定义服务器和路由类:** 学习创建可配置的服务器和路由类,实现应用程序所有代码依赖的引导。还将构建基于 Schema 的路由系统,简化应用路由的管理。 * **模型、控制器、仓库、服务:** 逐步构建 MVC 模式,实现应用程序内代码职责的逻辑分离。探索如何利用仓库(Repositories)和业务服务(Services)层来封装 SQL 和业务逻辑。 * **中间件和验证:** 学习创建中间件,实现路由的访问权限控制(如仅限认证用户)。同时,掌握用户数据提交时的表单验证,以及处理文件上传时的自定义文件解析。 * **邮件发送:** 实现一个自定义且可配置的邮件发送模块。 * **定时任务(CRON):** 学习创建调度器,实现基于预设时间间隔执行特定任务的功能。 * **日志记录:** 构建自定义日志模块,并提供 API 用于获取应用程序级别的日志信息,以监控应用状态。 * **实现 WebSockets:** 将 WebSockets 集成到应用中,以支持实时操作。

课程评论(0条)

课程详情

By enrolling and finishing this course you will learn more about structuring and organizing your Node application. Throughout the course, we will be building a custom MVC-like structure and adding various coding patterns along the way.This course is aimed at students who have at least some experience with Node or have built applications with other backend languages as we are not covering any of the programming or Node-related basics.You can pick some other Node beginner course and then come back later here to learn some more advanced architectural approaches.Here are, summarized, some of the things you will learn throughout this course.Custom server and router classYou will learn how to create a custom and configurable server and router class that will bootstrap all of the code dependencies necessary to run your application.We will create a schema-based routing system for easy management of app routes.Models, Controllers, Repositories, ServicesWe will start working on our MVC pattern and try to logically separate code responsibilities within our application.We will take a look at how repositories and services can be utilized to outsource some of our SQL and business logic.Middleware and ValidationYou will learn how to create middleware and limit some of your routes to only auth users.We will also take a look at how to perform form validation when users are submitting data.We will implement custom file parsing when users are uploading documents with form data.Sending emailsWe will implement a custom and configurable mailer module.Scheduled functions CRONWe will take a look at how to create a scheduler that will execute some tasks based on predefined time intervals.LoggerLogging is very important for looking at the state of your running application. That is why we will create a custom logger and expose some API to get application-level logs.Implementing WebSocketsWe will implement WebSockets into our app to facilitate real-time operations.

课程标签

0人关注该课程

主题相关的课程