ta
Professional Node.js Building Javascript Based Scalable Software Kindle Edition
Share FREE BOOK Professional Node.js Building Javascript Based Scalable Software Kindle Edition by Pedro Teixeira
By Pedro Teixeira
PART IIntroduction and Setup
CHAPTER 1: Installing Node
CHAPTER 2: Introducing Node
CHAPTER 1: Installing Node
CHAPTER 2: Introducing Node
➤ ➤ ➤ | Getting Node up and running Installing Node Package Manager (NPM) Using NPM to install, uninstall, and update packages |
been working on. This project was a platform that combined Google’s V8 JavaScript engine,
an event loop, and a low-level I/O API. This project was not like other server-side JavaScript
platforms where all the I/O primitives were event-driven and there was no way around it.
By leveraging the power and simplicity of JavaScript, this project turned the diffcult task of
writing event-driven server-side applications into an easy one. The project received a standing
ovation and has since then been met with unprecedented growth, popularity, and adoption.
INDEX
Symbols[ ] operator, buffers and, 30
= operator
Jade encoding and, 231
string appearance and, 231Aabsolute fle paths, 55.addListener() function, binding
callbacks and, 38–39
age, validating (Mongoose), 327–328
AnyEvent (Perl), 17app.js fle (Express.js)
app.js fle Express creates (listing),
219–220
middleware and, 220, 229
routes and, 223
applications
chat applications, extending, 250–253
debugging. See debugging modules and
applications
testing. See testing modules and
applications
web applications. See Express.js for web
applications.apply() method, 41array.forEach, iterating and, 189array.map() function, 190array.reduce function, 191, 192
arrays, logging with console.logfunction, 168
articles schemas (Mongoose)
Article list partial template (listing), 348
Article schema (listing), 341–342
Detail view and (listings), 345–347
Loading (listing), 345
assertion testing modulesassert module, 159–161, 162
assertion functions in node-tap,
161–163
async dependency, Mongoose and, 320–321async module
cascading, 186–187
detecting, 193–194
executing in parallel, 185–186
executing in series, 184–185
fltering, 192–193
installing, 183
iterating, 189–190
mapping, 190–191
queuing, 187–189
reducing, 191–192
Simple squaring server (listing),
183–184async.forEachIterating over a collection using (listing),
189–190
ordering of results and, 188
asynchronous dependencies, 320
asynchronous middleware, 200–201
asynchronous modules, testing, 163–166
asynchronous programming
basics of, 16–17
JavaScript and, 17–19
ordering of results and, 188async.parallel, 320–321
= operator
Jade encoding and, 231
string appearance and, 231Aabsolute fle paths, 55.addListener() function, binding
callbacks and, 38–39
age, validating (Mongoose), 327–328
AnyEvent (Perl), 17app.js fle (Express.js)
app.js fle Express creates (listing),
219–220
middleware and, 220, 229
routes and, 223
applications
chat applications, extending, 250–253
debugging. See debugging modules and
applications
testing. See testing modules and
applications
web applications. See Express.js for web
applications.apply() method, 41array.forEach, iterating and, 189array.map() function, 190array.reduce function, 191, 192
arrays, logging with console.logfunction, 168
articles schemas (Mongoose)
Article list partial template (listing), 348
Article schema (listing), 341–342
Detail view and (listings), 345–347
Loading (listing), 345
assertion testing modulesassert module, 159–161, 162
assertion functions in node-tap,
161–163
async dependency, Mongoose and, 320–321async module
cascading, 186–187
detecting, 193–194
executing in parallel, 185–186
executing in series, 184–185
fltering, 192–193
installing, 183
iterating, 189–190
mapping, 190–191
queuing, 187–189
reducing, 191–192
Simple squaring server (listing),
183–184async.forEachIterating over a collection using (listing),
189–190
ordering of results and, 188
asynchronous dependencies, 320
asynchronous middleware, 200–201
asynchronous modules, testing, 163–166
asynchronous programming
basics of, 16–17
JavaScript and, 17–19
ordering of results and, 188async.parallel, 320–321
.......
========================
Đăng nhận xét
0 Nhận xét