Node.js Enterprise Application Development in Practice cover

Node.js Enterprise Application Development in Practice

Rating 3.7
Word count
109K words
Chapters
117
ISBN
9787301251898

Tags

Summary

This book is an introduction to the Node.js technology stack, covering five major parts: Node.js fundamentals, core programming, network programming, data storage, and integrated application. The integrated application section uses a real "News Headlines" internet application as a case study, enabling readers to master Node.js from scratch.

With abundant cases and up-to-date technologies, Node.js Enterprise Application Development in Action covers not only Node.js itself but also the application of popular technologies such as Express, Socket.IO, Angular, MySQL, MongoDB, and Redis. The book is divided into the following parts: Fundamentals (Chapters 1-3): introduces Node.js basics, including modularity and testing; Core Programming (Chapters 4-9): covers Node.js handling of buffers, events, timers, files, processes, and streams; Network Programming (Chapters 10-17): covers Node.js topics including TCP, UDP, HTTP, WebSocket, TSL/SSL, middleware, Angular, and reactive programming; Data Storage (Chapters 18-20): covers Node.js operations for data storage with MySQL, MongoDB, and Redis; Integrated Application (Chapters 21-22): presents the complete process of building the "News Headlines" internet application with Node.js.

Editor's review

This book is aimed at developers who want to systematically master the Node.js technology stack. It covers five major parts—fundamentals, core programming, network programming, data storage, and integrated application—and weaves in commonly used technologies such as Express, Socket.IO, Angular, MySQL, MongoDB, and Redis. The integrated application section carries particular weight: using a "News Headlines" internet application as a case study, it walks through the development process from scratch, helping readers ground scattered module knowledge in a complete project. With abundant cases and relatively new technologies, the book works well as a bridge from syntax learning to engineering practice. Rather than just flipping through chapters, readers should build along with the cases and refer back to the relevant chapters when problems arise—this yields better results.

Who it's for

A good fit for

  • Backend beginners who already know JavaScript basics and want to learn Node.js systematically
  • Developers who need to connect Express, databases, and frontend frameworks in a complete project
  • Computer science students who can use it as a reference for course design or graduation projects
  • Engineers transitioning from other backend languages who want a quick overview of the Node.js stack

Not a good fit for

  • Absolute beginners with no programming background and no exposure to JavaScript
  • Readers who only want to understand Node.js concepts without writing code

Reading tips

  1. First skim the table of contents to understand how the five parts relate, then practice in order.
  2. Build the "News Headlines" case step by step, running and verifying each module as you complete it.
  3. For database or network chapters, get the examples running first, then change parameters and observe how results vary.
  4. After finishing, try replacing one technology component in the case and refactoring it with a solution you are familiar with.

About the publisher

Peking University Press China · Founded in 1979

Peking University Press is a comprehensive university press whose publishing areas cover classical literature, popular science, social culture, world history, Western philosophy, and culture. Its catalogue contains 6,031 titles, with representative books including A Dream of Red Mansions, Relativity: The Special and General Theory (15th Edition) (with Einstein's classic papers on unified field theory and other topics), Elements, Conics, The Aristocratic Families of the Eastern Jin, The Philosophy of Mythology (Volume I), The Philosophy of Mythology (Volume II), and The Origin of Continents and Oceans. Representative authors include Cao Xueqin, Zhou Ruchang, Albert Einstein, Euclid, Apollonius, Tian Yuqing, Schelling, and Xian Gang. The press has developed distinctive strengths in classical Chinese literature and in the translation of Western philosophical classics, while also covering scientific classics and social and cultural studies. As public information is limited, this description is based only on the books in the catalogue and offers no further extrapolation.

Contents

  1. 版权信息
  2. 前言
  3. 第1章 Node.js概述
  4. 1.1 当前互联网应用的特征
  5. 1.2 Node.js简介
  6. 1.3 Node.js的特点
  7. 1.4 安装Node.js及IDE
  8. 实战 1.5实战:第一个Node.js应用
  9. 第2章 模块化
  10. 2.1 理解模块化机制
  11. 2.2 使用npm管理模块
  12. 2.3 核心模块
  13. 第3章 测试
  14. 3.1 使用断言
  15. 3.2 第三方测试工具
  16. 第4章 Buffer(缓冲区)
  17. 4.1 了解Buffer
  18. 4.2 创建缓冲区
  19. 4.3 切分缓冲区
  20. 4.4 连接缓冲区
  21. 4.5 比较缓冲区
  22. 4.6 缓冲区编解码
  23. 第5章 事件处理
  24. 5.1 理解事件和回调
  25. 5.2 事件发射器
  26. 5.3 事件类型
  27. 5.4 事件的操作
  28. 第6章 定时处理
  29. 6.1 定时处理常用类
  30. 6.2 定时调度
  31. 6.3 取消定时
  32. 第7章 文件处理
  33. 7.1 了解fs模块
  34. 7.2 处理文件路径
  35. 7.3 打开文件
  36. 实战 7.4实战:读取文件
  37. 实战 7.5实战:写入文件
  38. 第8章 进程
  39. 8.1 执行外部命令
  40. 8.2 子进程ChildProcess
  41. 8.3 终止进程
  42. 第9章 流
  43. 9.1 流概述
  44. 9.2 可读流
  45. 9.3 可写流
  46. 9.4 双工流与转换流
  47. 第10章 TCP
  48. 10.1 创建TCP服务器
  49. 10.2 监听连接
  50. 10.3 发送和接收数据
  51. 10.4 关闭TCP服务器
  52. 第11章 UDP
  53. 11.1 创建UDP服务器
  54. 11.2 监听连接
  55. 11.3 发送和接收数据
  56. 11.4 关闭UDP服务器
  57. 实战 11.5实战:UDP服务器的例子
  58. 第12章 HTTP
  59. 12.1 创建HTTP服务器
  60. 12.2 处理HTTP常用操作
  61. 12.3 请求对象和响应对象
  62. 12.4 REST概述
  63. 12.5 成熟度模型
  64. 实战 12.6实战:构建REST服务的例子
  65. 第13章 WebSocket
  66. 13.1 创建WebSocket服务器
  67. 13.2 监听连接
  68. 13.3 发送和接收数据
  69. 13.4 准备的状态
  70. 13.5 关闭WebSocket服务器
  71. 实战 13.6实战:WebSocket聊天服务器的例子
  72. 第14章 TLS/SSL
  73. 14.1 了解TLS/SSL
  74. 14.2 Node.js中的TLS/SSL
  75. 14.3 产生私钥
  76. 实战 14.4实战:构建TLS服务器和客户端
  77. 第15章 常用Web中间件
  78. 15.1 Express
  79. 15.2 Socket.IO
  80. 第16章 UI编程
  81. 16.1 常见UI框架
  82. 16.2 Angular的下载安装
  83. 16.3 Angular CLI的常用操作
  84. 实战 16.4实战:Angular应用的例子
  85. 第17章 响应式编程
  86. 17.1 了解Observable机制
  87. 17.2 了解RxJS技术
  88. 17.3 了解Angular中的Observable
  89. 第18章 操作MySQL
  90. 18.1 下载安装MySQL
  91. 18.2 MySQL的基本操作
  92. 实战 18.3实战:使用Node.js操作MySQL
  93. 18.4 深入理解mysql模块
  94. 第19章 操作MongoDB
  95. 19.1 下载安装MongoDB
  96. 19.2 MongoDB的基本操作
  97. 实战 19.3实战:使用Node.js操作MongoDB
  98. 19.4 深入理解mongodb模块
  99. 第20章 操作Redis
  100. 20.1 下载安装Redis
  101. 20.2 Redis的数据类型及基本操作
  102. 实战 20.3实战:使用Node.js操作Redis
  103. 第21章 实战:“用户管理”客户端的实现
  104. 21.1 “用户管理”应用概述
  105. 21.2 修改AppComponent组件
  106. 21.3 实现用户编辑器
  107. 21.4 展示用户列表
  108. 21.5 多组件化开发
  109. 21.6 使用服务
  110. 21.7 使用路由
  111. 21.8 使用HTTP
  112. 第22章 实战:“用户管理”服务端的实现
  113. 22.1 服务端概述
  114. 22.2 创建REST API
  115. 22.3 客户端访问服务端
  116. 参考文献
  117. 下载链接

FAQ

Can I read this book directly without any Node.js background?
Yes, but you need JavaScript basics first. The first part starts from Node.js fundamentals, including modularity and testing, so readers with zero Node.js experience can follow along by reading chapters in order and practicing; if you have never written JavaScript, it is better to build that foundation first.
Do I need to complete the entire "News Headlines" case?
It is recommended to go through it at least once in full. The case connects technologies such as Express, databases, and frontend frameworks, and is the core of the book's integrated application section. If time is limited, you can practice it chapter by chapter, but completing it in full gives you a better sense of how the modules work together.
Will the technology versions covered in the book become outdated quickly?
Technical books are always subject to version timeliness. This book covers commonly used technologies such as Express, Socket.IO, Angular, MySQL, MongoDB, and Redis; the core concepts and development approaches remain relatively stable. For specific API details, check against official documentation rather than sticking rigidly to the book's versions.
What development environment should I prepare in advance?
You need to install the Node.js runtime and the npm package manager, and set up database environments such as MySQL, MongoDB, and Redis. It is best to set things up according to the case requirements in the book, then fill in dependencies step by step as errors arise, rather than configuring every tool at the outset.

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

About the author

柳伟卫 Author

Liu Weiwei is an author active in the field of Chinese-language technical books. Public information about him is limited; five of his works are currently known, covering categories such as programming design, general computing, and software learning. Judging from his representative works, his writing focuses on enterprise application development and framework principles, involving Netty, Node.js, Angular, and HarmonyOS, while another book, Lightweight Architecture Practice for Large Internet Applications, addresses system architecture practice. These titles are mostly oriented toward real development scenarios, favoring framework analysis, hands-on development, and progression from beginner to mastery, making them suitable for developers who want to study the relevant technologies systematically. Overall, Liu Weiwei's works reflect sustained attention to mainstream development frameworks and platform technologies, with a style that combines technical explanation and practical application, offering practical value among computer technology learning books.

More by the same author

Top rated in the same category