相關主題
商品描述
Since it’s creation in 2009, Node.js has grown into a powerful and increasingly popular asynchronous-development framework for creating highly-scalable network applications using JavaScript. Respected companies such as Dow Jones and LinkedIn are among the many organizations to have seen Node’s potential and adopted it into their businesses.
Pro Node.js for Developers provides a comprehensive guide to this exciting new technology. We introduce you to Node – what it is, why it matters and how to set it up – before diving deeply into the key concepts and APIs that underpin its operation.
Building upon your existing JavaScript skills you’ll be shown how to use Node.js to build both Web- and Network-based applications, to deal with data sources, capture events and deal with child processes to create robust applications that will work well in a wide range of circumstances.
Once you've mastered these skills we’ll go further, teaching you more advanced software engineering skills that will give your code a professional edge. You’ll learn how to create easily reusable modules that will save you time through code reuse, to log and debug your applications quickly and effectively and to write code that will scale easily and reliably as the demand for your application grows.
What youll learn
- Install, configure and deploy Node.js apps effectively
- Understand the Node.js asynchronous programming model in detail
- Create both web and network-based Node.js applications with ease
- Learn to work effectively with varied data sources and file types
- Discover advanced software engineering concepts that will will save you time and promote code reuse
Who this book is for
This book is for developers who already have a working knowledge of JavaScript and are interested in adopting Node.js into their projects. All other concepts will be introduced from first-principals.
Table of Contents
- Introducing Node.js
- The Node Module System
- The Event Loop
- Events
- Timers and Scheduling
- The Command Line Interface
- Accessing the File System
- Data Streams
- Binary Data
- Creating Child Processes
- Network Programming
- HTTP Server Development
- Connect
- Connecting to Databases
- Logging
- Application Scaling
- Appendix
商品描述(中文翻譯)
自2009年創立以來,Node.js已成為一個強大且日益受歡迎的非同步開發框架,專門用於使用JavaScript創建高度可擴展的網路應用程式。像道瓊斯(Dow Jones)和LinkedIn等受人尊敬的公司都是看到Node潛力並將其納入業務的眾多組織之一。
《Pro Node.js for Developers》提供了這項令人興奮的新技術的全面指南。我們將介紹Node——它是什麼、為什麼重要以及如何設置——然後深入探討其運作的關鍵概念和API。
在您現有的JavaScript技能基礎上,我們將展示如何使用Node.js來構建Web和網路應用程式,處理數據來源、捕獲事件以及處理子進程,以創建在各種情況下都能良好運作的穩健應用程式。
一旦您掌握了這些技能,我們將進一步教您更高級的軟體工程技能,讓您的程式碼更具專業水準。您將學會如何創建易於重用的模組,通過程式碼重用節省時間,快速有效地記錄和除錯您的應用程式,以及編寫能隨著應用程式需求增長而輕鬆可靠擴展的程式碼。
您將學到的內容:
- 有效安裝、配置和部署Node.js應用程式
- 詳細了解Node.js的非同步程式設計模型
- 輕鬆創建Web和網路基礎的Node.js應用程式
- 學會有效處理各種數據來源和文件類型
- 發現能節省時間並促進程式碼重用的高級軟體工程概念
本書適合對象:
本書適合已具備JavaScript工作知識並有興趣將Node.js納入其專案的開發人員。所有其他概念將從基本原則開始介紹。
目錄:
1. 介紹Node.js
2. Node模組系統
3. 事件循環
4. 事件
5. 計時器與排程
6. 命令列介面
7. 訪問檔案系統
8. 數據流
9. 二進位數據
10. 創建子進程
11. 網路程式設計
12. HTTP伺服器開發
13. Connect
14. 連接到資料庫
15. 記錄
16. 應用程式擴展
17. 附錄