up-and-running-with-node-preview.pdf

(784 KB) Pobierz
Up and Running with Node.js
Up and Running with Node.js
588751985.020.png 588751985.021.png 588751985.022.png 588751985.023.png
588751985.001.png 588751985.002.png 588751985.003.png 588751985.004.png
Up and Running with Node.js
Tom Hughes-Croucher
Beijing Cambridge Farnham Köln Sebastopol Tokyo
588751985.005.png 588751985.006.png 588751985.007.png 588751985.008.png 588751985.009.png 588751985.010.png
Up and Running with Node.js
by Tom Hughes-Croucher
Copyright © 2010 . All rights reserved.
Editor: Simon St.Laurent
Printing History:
ISBN: 978-1-449-39858-3
1289319959
588751985.011.png 588751985.012.png 588751985.013.png 588751985.014.png
Table of Contents
Author's Note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
A very brief introduction to Node.js.
1
Part I. Core Concepts
2. Why Node . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 Professionalism in JavaScript
5
2.2 Browser Wars 2.0
6
3. Understanding Node.js . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1 The Event Loop
9
Part II. Writing Code with Node.js
4. Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1 Installing Node.js
17
5.2 First steps in code
22
5.2.1 Node REPL
22
5.2.2 My First Server
23
v
588751985.015.png 588751985.016.png 588751985.017.png 588751985.018.png 588751985.019.png
Zgłoś jeśli naruszono regulamin