Muutke küpsiste eelistusi

E-raamat: Pro Express.js: Master Express.js: The Node.js Framework For Your Web Development

  • Formaat: PDF+DRM
  • Ilmumisaeg: 26-Dec-2014
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484200377
Teised raamatud teemal:
  • Formaat - PDF+DRM
  • Hind: 67,91 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: PDF+DRM
  • Ilmumisaeg: 26-Dec-2014
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484200377
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Pro Express.js is for the reader who wants to quickly get up-to-speed with Express.js, the flexible Node.js framework. Author Azat Mardan clearly explains how to start developing with Express.js with a basic 'Hello World', and then delves into a deep API reference, before looking at common and abstract development problems. Lastly, you will learn how to build a series of real-world apps in order to cement your knowledge.

In order to get the best from this book, you will be familiar with Node.js scripts and able to install packages using npm. In the deep API reference, each aspect of the Express.js API is explained clearly with a simple exercise to demonstrate its usage. This includes configuration, settings and environments; different middleware and its uses; templating engines; extracting parameters and routing; request and response; error handling; and running an app. In the next part you'll delve into abstraction, streams, authentication, multithreading, Socket.io, security, and more complex modules. You will also learn about smaller frameworks built using Express.js, such as Sails.js, and Derby. Finally you'll build real-world apps including a REST API, Todo App, and Instagram gallery.

Express.js is used by a range of well-known companies such as MySpace and Storify, and it's becoming more and more likely that it'll be a required skill for new developers. With this book you can skip learning via complicated documentation, and get the information from a developer who's been using Express.js for long enough to explain things well. AddPro Express.js to your library today.

About the Author xv
About the Technical Reviewers xvii
Foreword xix
Acknowledgments xxi
Introduction xxiii
Part I: Getting Started 1(30)
Chapter 1 Starting with Express.js
3(12)
How Express.js Works
4(3)
Third-Party Dependencies
5(1)
Instantiations
5(1)
Connecting to Databases
5(1)
Configuring Express.js App Settings
6(1)
Defining Middleware
6(1)
Defining Routes
6(1)
Starting the App
6(1)
Express.js Installation
7(5)
Express.js Generator Installation
12(2)
Summary
14(1)
Chapter 2 Hello World Example
15(16)
Getting Started
15(5)
Using Request Handlers
17(1)
Outputting Terminal Messages
17(2)
Enhancing the App
19(1)
Generator Commands
20(8)
Generating a Skeleton Express.js app
21(1)
Reviewing the Application's Structure
22(6)
MVC Structure and Modules
28(1)
Watching for File Changes
29(1)
Summary
30(1)
Part II: Deep API Reference 31(122)
Chapter 3 Configuration, Settings, and Environments
33(18)
Configuration
33(2)
app.set() and app.get()
34(1)
app.enable() and app.disable()
34(1)
app.enabled() and app.disabled()
35(1)
Settings
35(10)
env
36(1)
view cache
36(1)
view engine
36(2)
views
38(1)
trust proxy
38(1)
jsonp callback name
38(2)
json replacer and json spaces
40(1)
case sensitive routing
41(1)
strict routing
42(1)
x-powered-by
42(2)
etag
44(1)
query parser
45(1)
subdomain offset
45(1)
Environments
45(4)
Summary
49(2)
Chapter 4 Working with Middleware
51(24)
Applying Middleware
52(3)
Essential Middleware
55(18)
compression
56(2)
morgan
58(1)
body-parser
59(1)
urlencodedO
60(1)
cookie-parser
61(1)
express-session
62(1)
csurf
62(2)
express.static0
64(1)
connect-timeout
64(2)
errorhandler
66(1)
method-override
66(1)
response-time
67(1)
serve-favicon
68(1)
serve-index
69(2)
vhost
71(1)
connect-busboy
72(1)
Other Middleware
73(1)
Summary
73(2)
Chapter 5 Template Engines and Consolidate.js
75(12)
How to Use Template Engines
76(6)
app.engine0
77(1)
Uncommon Libraries
78(4)
Template Engine Choices
82(1)
Jade
82(1)
Hami.js
82(1)
EJS
82(1)
Handlebars.js
82(1)
Hogan.js Adapters
83(1)
Combyne.js
83(1)
Swig
83(1)
Whiskers
83(1)
Blade
83(1)
Haml-Coffee
83(1)
Webfiller
83(1)
Consolidate.js
83(2)
Summary
85(2)
Chapter 6 Parameters and Routing
87(16)
Parameters
87(7)
app.paramO
91(3)
Routing
94(6)
app.VER90
95(3)
app.allO
98(1)
Trailing Slashes
98(1)
Router Class
98(1)
router.route(path)
99(1)
Request Handlers
100(2)
Summary
102(1)
Chapter 7 Express.js Request Object
103(16)
request.query
104(2)
request.params
106(2)
request.body
108(2)
request.route
110(1)
request.cookies
111(2)
request.signedCookies
113(1)
request.header() and request.get()
113(1)
Other Attributes and Methods
113(4)
Summary
117(2)
Chapter 8 Express.js Response Object
119(22)
response.render()
119(3)
response.locals
122(2)
response.set()
124(2)
response.status()
126(1)
response.send()
127(3)
response.json()
130(2)
response.jsonp()
132(1)
response.redirect()
133(1)
Other Response Methods and Properties
133(4)
Streams
137(2)
Summary
139(2)
Chapter 9 Error Handling and Running an App
141(12)
Error Handling
141(4)
Running an App
145(6)
app.Iocals
145(1)
app.renderO
145(1)
app.mountpath
146(1)
app.on('mount', function(parent){...})
147(1)
app.pathO
147(1)
app.IistenQ
147(4)
Summary
151(2)
Part III: Solving Common and Abstract Problems 153(62)
Chapter 10 Abstraction
155(6)
Middleware
155(1)
Routes
156(2)
Combining Middleware and Routes
158(2)
Summary
160(1)
Chapter 11 Database, Keys and Stream Tips
161(10)
Using Databases in Modules
161(2)
Keys and Passwords
163(2)
JSON File
164(1)
Environment Variables
165(1)
Streams
165(5)
Summary
170(1)
Chapter 12 Redis and Authentication Patterns
171(6)
Redis
171(4)
Authentication Patterns
175(1)
Summary
176(1)
Chapter 13 Multithreading with Clusters
177(4)
A Multithreading Example
177(3)
Summary
180(1)
Chapter 14 Applying Stylus, Less, and Sass
181(4)
Stylus
181(1)
Less
182(1)
Sass
183(1)
Summary
183(2)
Chapter 15 Security Tips
185(8)
Cross-Site Request Forgery
185(3)
Process Permissions
188(1)
HTTP Security Headers
188(2)
Input Validation
190(2)
Summary
192(1)
Chapter 16 Socket.IO and Express.js
193(6)
Using Socket.I0
193(4)
Running the App
197(1)
Summary
198(1)
Chapter 17 Domain and Express.js
199(6)
Defining the Problem
199(1)
Exploring a Basic Domain Example
200(1)
Writing a Domain App
200(4)
Summary
204(1)
Chapter 18 Sails.js, DerbyJS, LoopBack, and Other Frameworks
205(10)
Sails.js
205(2)
DerbyJS
207(3)
LoopBack
210(3)
Other Frameworks
213(1)
Summary
214(1)
Part IV: Tutorials and Examples 215(102)
Chapter 19 Instagram Gallery
217(6)
Starting the Instagram Gallery
217(4)
Viewing the Gallery
221(1)
Summary
222(1)
Chapter 20 Todo App
223(26)
Overview
224(5)
Setup
229(2)
App.js
231(6)
Routes
237(4)
Jade
241(6)
Less
247(1)
Summary
248(1)
Chapter 21 REST API
249(14)
RESTful API Basics
250(1)
Test Coverage
251(5)
Dependencies
256(1)
Server Implementation
257(4)
Summary
261(2)
Chapter 22 HackHall
263(54)
What Is HackHall?
263(1)
Running HackHall
264(7)
Structure
271(1)
Package.json
272(1)
Express.js App
273(5)
Routes
278(24)
index.js
278(1)
auth.js
278(5)
main.js
283(3)
users.js
286(6)
application.js
292(3)
posts.js
295(7)
Mongoose Models
302(8)
Mocha Tests
310(5)
Summary
315(2)
Appendix A: Related Reading and Resources 317(4)
Other Node.js Frameworks
317(2)
Node.js Books
319(1)
JavaScript Classics
320(1)
Appendix B: Migrating Express.js 3.x to 4.x: Middleware, Route, and Other Changes 321(8)
Introducing Unbundled Middleware in Express.js 4
321(2)
Removing Deprecated Methods from Express.js 4 Apps
323(1)
app.configureO
323(1)
app.router
323(1)
res.on ('header')
324(1)
res.charset
324(1)
res.headerSent
324(1)
req.acceptedQ
324(1)
Other Express.js 4 Changes
324(1)
app.useO
324(1)
res. location0
324(1)
app.routeO
324(1)
json spaces
325(1)
req.params
325(1)
res.Iocals
325(1)
req.is
325(1)
Express.js Command-Line Generator
325(1)
Exploring the New Express.js 4 Route Instance and How to Chain It
325(2)
Further Express.js 4 Migration Reading Links
327(2)
Appendix C: Express.js 4 Cheat Sheet 329(6)
Installation
330(1)
Generator
330(1)
Basics
330(1)
HTTP Verbs and Routes
331(1)
Request
331(1)
Request Header Shortcuts
331(1)
Response
332(1)
Handlers Signatures
332(1)
Stylus and Jade
332(1)
Body
332(1)
Static
333(1)
Connect Middleware
333(1)
Other Popular Middleware
333(2)
Appendix D: ExpressWorks 335(4)
Installation
335(1)
Usage
336(1)
Resetting
336(1)
Tasks
336(2)
Hello World
336(1)
Jade
336(1)
Good Old Form
337(1)
Static
337(1)
Stylish CSS
337(1)
Param Pam Pam
337(1)
What's in a Query
338(1)
JSON Me
338(1)
Summary
338(1)
Index 339
Azat Mardan has over 12 years of experience in web, mobile and software development. With a Bachelor's Degree in Informatics and a Master of Science in Information Systems Technology degree, Azat possesses deep academic knowledge as well as extensive practical experience.Currently Azat works as an engineer at the curated social media news aggregator website Storify.com. He teaches technical classes at General Assembly San Francisco and Hack Reactor to much acclaim. In his spare time, Azat writes about technology on his blog webAppLog.com. He is also an author of artisanal book Rapid Prototyping with JS: Agile JavaScript Development.Previously, Azat has worked as a CTO/co-founder at Gizmo, an enterprise cloud platform for mobile marketing campaigns, and has undertaken the prestigious 500 Startups business accelerator program. Prior to this, Azat was developing mission-critical applications for government agencies in Washington, DC, including the National Institutes of Health, the National Center for Biotechnology Information, and the Federal Deposit Insurance Corporation, as well as Lockheed Martin.Azat is a frequent attendee at Bay Area tech meet-ups and hackathons (StartupBus 2013, AngelHack hackathon 12 finalist with team FashionMetric.com).