{"id":20673040,"url":"https://github.com/relph1119/nodejs-advanced-technology","last_synced_at":"2026-04-22T19:32:16.150Z","repository":{"id":106543149,"uuid":"589920735","full_name":"Relph1119/nodejs-advanced-technology","owner":"Relph1119","description":"狼书第3卷《Node.js 高级技术》代码示例","archived":false,"fork":false,"pushed_at":"2023-01-18T01:15:46.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T18:09:45.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Relph1119.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-17T08:55:55.000Z","updated_at":"2023-01-18T01:17:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"45724bab-35b8-4789-a3ad-7ebeacdc95bf","html_url":"https://github.com/Relph1119/nodejs-advanced-technology","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Relph1119/nodejs-advanced-technology","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Fnodejs-advanced-technology","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Fnodejs-advanced-technology/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Fnodejs-advanced-technology/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Fnodejs-advanced-technology/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Relph1119","download_url":"https://codeload.github.com/Relph1119/nodejs-advanced-technology/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relph1119%2Fnodejs-advanced-technology/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32152589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T20:39:51.784Z","updated_at":"2026-04-22T19:32:16.142Z","avatar_url":"https://github.com/Relph1119.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 狼书第3卷《Node.js 高级技术》代码示例\n\n\u0026emsp;\u0026emsp;狼书第3卷《Node.js 高级技术》这本书主要以Node.js高级技术为核心，讲解了npm模块的开发流程和示例；还介绍了基于Koa框架构建的blog项目示例，通过自建模块的使用，优化代码结构；通过对架构演变，讲解Node.js微服务的构建流程与示例；基于阿里云的服务部署，介绍了手动/自动部署流程、APM监控等，基于Easy-Monitor的性能监控与调优方案；讲解TDD、BDD测试流程，并介绍最小化问题、保证质量、便于重构的三个核心原则，演示基于Cucumber框架的BDD流程，并简要讲解了TypeScript的内容。\n\n## 运行环境\n\n### 环境版本\n\n- Node.js版本：16.1.0\n\n## 项目结构\n\u003cpre\u003e\ncodes--------------------------------------代码\n+---ch01---------------------------------------第1章自己动手写npm模块\n+---ch02---------------------------------------第2章自己动手编写企业级Web开发框架\n+---ch03---------------------------------------第3章构建具有Node.js特色的服务\n+---ch04---------------------------------------第4章服务器部署与性能调优\n+---ch05---------------------------------------第5章测试、开源与自学\n\u003c/pre\u003e\n\n## 代码问题\n1. P183：由于seneca版本更新，消息添加的方法应改为`bind`，消息调用的方法应改为`use`\n2. P272：由于tap版本更新，使用`not`代替`notEqual`方法，使用`match`代替`similar`方法\n3. P287：由于chromedriver的版本问题，仅支持Chrome v109版本，需要降级使用\n\n## 学习总结\n\n\u0026emsp;\u0026emsp;笔者学完这本书之后，对Node.js的开发、测试、部署全流程有了更深的了解，结合第2卷的Web应用开发，了解了Node.js高级技术中的各种模块使用。\n\n\u0026emsp;\u0026emsp;本书的缺点很多：\n1. 缺少项目代码，对初学者来说，需要手敲代码。\n2. 在第2章的代码中，由于书中介绍的项目代码不全，可能无法和书中的运行结果一致\n3. 在第3章的代码中，书中无法完整提供项目代码，无法实现延时加载的结果，无法正常运行。\n4. 第4章主要是在阿里云部署的介绍，需要自己搭建\n5. 在第5章的代码中，笔者没有执行TypeScript与Node.js的集成示例。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelph1119%2Fnodejs-advanced-technology","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelph1119%2Fnodejs-advanced-technology","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelph1119%2Fnodejs-advanced-technology/lists"}