Голосов: 0
#1
Node.js in Action
Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich
October, 2013 | 416 pages ISBN: 9781617290572
Node.js in Action is an example-driven tutorial that starts at square one and guides you through all the features, techniques, and concepts you'll need to build production-quality Node applications. You'll start by learning how to set up your Node development environment, including loading the community-created extensions. Next, you'll run several simple demonstration programs where you'll learn the basics of a few common types of Node applications. Then you'll dive into asynchronous programming, a model Node leverages to lessen application bottlenecks.
ABOUT THIS BOOK:
JavaScript on the server? You bet. Node.js is a JavaScript server capable of supporting scalable, high-performance web applications. Using asynchronous I/O, the server can do more than one thing at a time, a key requirement for real-time apps like chat, games, and live statistics. And since it's JavaScript, you use the same language end to end.
Node.js in Action shows you how to build production-quality applications. Clear introductions of key concepts and example-by-example coverage take you from setup to deployment. You'll dive into asynchronous programming, data storage, and output templating, and interact with the filesystem to create non-HTTP applications like TCP/IP servers and command-line tools. Perfect for a web developer transitioning from Rails, Django, or PHP. Requires basic knowledge of JavaScript. No prior experience with Node.js needed.
What's Inside
About the Authors
- Set up Node and extensions
- Grok asynchronous programming and the event loop
- Examples including microblogging, IM, games, and more
As skilled practitioners, expert teachers and trainers, and contributors to the core framework, authors Mike Cantelon, Marc Harter, T.J. Holowaychuk, and Nathan Rajlich represent the best of the Node.js development community.Part 1 Node fundamentals
Chapter 1 Welcome to Node.js
Built on JavaScriptChapter 2 Building a multiroom chat application
Asynchronous and evented: the browser
Asynchronous and evented: the server
DIRTy applications
DIRTy by default
Summary
Application overviewChapter 3 Node programming fundamentals
Application requirements and initial setup
Serving the application’s HTML, CSS, and client-side JavaScript
Handling chat-related messaging using Socket.IO
Using client-side JavaScript for the application’s user interface
Summary
Organizing and reusing Node functionalityPart 2 Web application development with Node
Asynchronous programming techniques
Sequencing asynchronous logic
Summary
Chapter 4 Building Node web applications
HTTP server fundamentalsChapter 5 Storing Node application data
Building a RESTful web service
Serving static files
Accepting user input from forms
Securing your application with HTTPS
Summary
Serverless data storageChapter 6 Connect
Relational database management systems
NoSQL databases
Summary
Setting up a Connect applicationChapter 7 Connect’s built-in middleware
How Connect middleware works
Why middleware ordering matters
Mounting middleware and servers
Creating configurable middleware
Using error-handling middleware
Summary
Middleware for parsing cookies, request bodies, and query stringsChapter 8 Express
Middleware that implements core web application functions
Middleware that handles web application security
Middleware for serving static files
Summary
Generating the application skeletonChapter 9 Advanced Express
Configuring Express and your application
Rendering views
Handling forms and file uploads
Handling resource downloads
Summary
Authenticating usersChapter 10 Testing Node applications
Advanced routing techniques
Creating a public REST API
Error handling
Summary
Unit testingChapter 11 Web application templating
Acceptance testing
Summary
Using templating to keep code cleanPart 3 Going further with Node
Templating with Embedded JavaScript
Using the Mustache templating language with Hogan
Templating with Jade
Summary
Chapter 12 Deploying Node applications and maintaining uptime
Hosting Node applicationsChapter 13 Beyond web servers
Deployment basics
Maximizing uptime and performance
Summary
Socket.IOChapter 14 The Node ecosystem
TCP/IP networking in depth
Tools for interacting with the operating system
Developing command-line tools
Summary
Online resources for Node developersappendix A Installing Node and community add-ons
GitHub
Contributing to the npm repository
Summary
appendix B Debugging Node
appendix C Extending and configuring Express
Цена: $35.99 eBook Only (includes PDF)
Для просмотра содержимого вам необходимо зарегистрироваться!Для просмотра содержимого вам необходимо зарегистрироваться!
Последнее редактирование модератором:
- Статус
- В этой теме нельзя размещать новые ответы.