
Professional Node.js
Building Javascript Based Scalable Software
Pedro Teixeira(Author)
Wrox Press
Published on 23. October 2012
Book
Paperback/Softback
408 pages
978-1-118-18546-9 (ISBN)
Description
Learn to build fast and scalable software in JavaScript with Node.js
Node.js is a powerful and popular new framework for writing scalable network programs using JavaScript. This no nonsense book begins with an overview of Node.js and then quickly dives into the code, core concepts, and APIs. In-depth coverage pares down the essentials to cover debugging, unit testing, and flow control so that you can start building and testing your own modules right away.
* Covers node and asynchronous programming main concepts
* Addresses the basics: modules, buffers, events, and timers
* Explores streams, file systems, networking, and automated unit testing
* Goes beyond the basics, and shares techniques and tools for debugging, unit testing, and flow control
If you already know JavaScript and are curious about the power of Node.js, then this is the ideal book for you.
Node.js is a powerful and popular new framework for writing scalable network programs using JavaScript. This no nonsense book begins with an overview of Node.js and then quickly dives into the code, core concepts, and APIs. In-depth coverage pares down the essentials to cover debugging, unit testing, and flow control so that you can start building and testing your own modules right away.
* Covers node and asynchronous programming main concepts
* Addresses the basics: modules, buffers, events, and timers
* Explores streams, file systems, networking, and automated unit testing
* Goes beyond the basics, and shares techniques and tools for debugging, unit testing, and flow control
If you already know JavaScript and are curious about the power of Node.js, then this is the ideal book for you.
More details
Edition
1. Auflage
Language
English
Place of publication
United States
Publishing group
John Wiley & Sons Inc
Target group
Professional and scholarly
Dimensions
Height: 23.1 cm
Width: 18.8 cm
Thickness: 1.9 cm
Weight
688 gr
ISBN-13
978-1-118-18546-9 (9781118185469)
Schweitzer Classification
Other editions
Additional editions

E-Book
10/2012
Wrox
€28.99
Available for download

E-Book
10/2012
Wrox
€28.99
Available for download
Person
Pedro Teixeira is a prolific open-source programmer and author of many Node.js modules. He is a founding partner of The Node Firm and a senior programmer at Nodejitsu Inc., the leading Node.js platform-as-a-service provider. He is also the author of the popular Node Tuts screencasts.
Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
Content
INTRODUCTION xxvii
PART I: INTRODUCTION AND SETUP
CHAPTER 1: INSTALLING NODE 3
CHAPTER 2: INTRODUCING NODE 15
PART II: NODE CORE API BASICS
CHAPTER 3: LOADING MODULES 23
CHAPTER 4: USING BUFFERS TO MANIPULATE, ENCODE, AND DECODE BINARY DATA 29
CHAPTER 5: USING THE EVENT EMITTER PATTERN TO SIMPLIFY EVENT BINDING 35
CHAPTER 6: SCHEDULING THE EXECUTION OF FUNCTIONS USING TIMERS 45
PART III: FILES, PROCESSES, STREAMS, AND NETWORKING
CHAPTER 7: QUERYING, READING FROM, AND WRITING TO FILES 53
CHAPTER 8: CREATING AND CONTROLLING EXTERNAL PROCESSES 63
CHAPTER 9: READING AND WRITING STREAMS OF DATA 75
CHAPTER 10: BUILDING TCP SERVERS 83
CHAPTER 11: BUILDING HTTP SERVERS 95
CHAPTER 12: BUILDING A TCP CLIENT 103
CHAPTER 13: MAKING HTTP REQUESTS 113
CHAPTER 14: USING DATAGRAMS (UDP) 129
CHAPTER 15: SECURING YOUR TCP SERVER WITH TLS/SSL 139
CHAPTER 16: SECURING YOUR HTTP SERVER WITH HTTPS 149
PART IV: BUILDING AND DEBUGGING MODULES AND APPLICATIONS
CHAPTER 17: TESTING MODULES AND APPLICATIONS 157
CHAPTER 18: DEBUGGING MODULES AND APPLICATIONS 167
CHAPTER 19: CONTROLLING THE CALLBACK FLOW 177
PART V: BUILDING WEB APPLICATIONS
CHAPTER 20: BUILDING AND USING HTTP MIDDLEWARE 197
CHAPTER 21: MAKING A WEB APPLICATION USING EXPRESS.JS 217
CHAPTER 22: MAKING UNIVERSAL REAL-TIME WEB APPLICATIONS USING SOCKET.IO 241
PART VI: CONNECTING TO DATABASES
CHAPTER 23: CONNECTING TO MYSQL USING NODE-MYSQL 267
CHAPTER 24: CONNECTING TO COUCHDB USING NANO 277
CHAPTER 25: CONNECTING TO MONGODB USING MONGOOSE 311
INDEX 351
PART I: INTRODUCTION AND SETUP
CHAPTER 1: INSTALLING NODE 3
CHAPTER 2: INTRODUCING NODE 15
PART II: NODE CORE API BASICS
CHAPTER 3: LOADING MODULES 23
CHAPTER 4: USING BUFFERS TO MANIPULATE, ENCODE, AND DECODE BINARY DATA 29
CHAPTER 5: USING THE EVENT EMITTER PATTERN TO SIMPLIFY EVENT BINDING 35
CHAPTER 6: SCHEDULING THE EXECUTION OF FUNCTIONS USING TIMERS 45
PART III: FILES, PROCESSES, STREAMS, AND NETWORKING
CHAPTER 7: QUERYING, READING FROM, AND WRITING TO FILES 53
CHAPTER 8: CREATING AND CONTROLLING EXTERNAL PROCESSES 63
CHAPTER 9: READING AND WRITING STREAMS OF DATA 75
CHAPTER 10: BUILDING TCP SERVERS 83
CHAPTER 11: BUILDING HTTP SERVERS 95
CHAPTER 12: BUILDING A TCP CLIENT 103
CHAPTER 13: MAKING HTTP REQUESTS 113
CHAPTER 14: USING DATAGRAMS (UDP) 129
CHAPTER 15: SECURING YOUR TCP SERVER WITH TLS/SSL 139
CHAPTER 16: SECURING YOUR HTTP SERVER WITH HTTPS 149
PART IV: BUILDING AND DEBUGGING MODULES AND APPLICATIONS
CHAPTER 17: TESTING MODULES AND APPLICATIONS 157
CHAPTER 18: DEBUGGING MODULES AND APPLICATIONS 167
CHAPTER 19: CONTROLLING THE CALLBACK FLOW 177
PART V: BUILDING WEB APPLICATIONS
CHAPTER 20: BUILDING AND USING HTTP MIDDLEWARE 197
CHAPTER 21: MAKING A WEB APPLICATION USING EXPRESS.JS 217
CHAPTER 22: MAKING UNIVERSAL REAL-TIME WEB APPLICATIONS USING SOCKET.IO 241
PART VI: CONNECTING TO DATABASES
CHAPTER 23: CONNECTING TO MYSQL USING NODE-MYSQL 267
CHAPTER 24: CONNECTING TO COUCHDB USING NANO 277
CHAPTER 25: CONNECTING TO MONGODB USING MONGOOSE 311
INDEX 351