Node cookbook : over 50 recipes to master the art of asynchronous server-side JavaScript using Node.js, with coverage of Express 4 and Socket. IO frameworks and the new Streams API /
In Node Cookbook Second Edition, each chapter focuses on a different aspect of working with Node. Following a Cookbook structure, the recipes are written in an easy-to-understand language. Readers will find it easier to grasp even the complex recipes which are backed by lots of illustrations, tips,...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2014.
|
Edición: | 2nd ed. |
Colección: | Quick answers to common problems.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Making a Web Server; Introduction; Setting up a router; Serving static files; Caching content in memory for immediate delivery; Optimizing performance with streaming; Securing against filesystem hacking exploits; Chapter 2: Exploring the HTTP Object; Introduction; Processing POST data; Handling file uploads; Using Node as an HTTP client; Implementing download throttling; Chapter 3: Working with Data Serialization; Introduction; Converting an object to JSON and back
- Converting an object to XML and backBrowser-server transmission via AJAX; Working with real data
- fetching trending tweets; Chapter 4: Interfacing with Databases; Introduction; Writing to a CSV file; Connecting and sending SQL to a MySQL server; Storing and retrieving data with MongoDB; Storing data to CouchDB with Cradle; Retrieving data from CouchDB with Cradle; Accessing the CouchDB changes stream with Cradle; Storing and retrieving data with Redis; Implementing PubSub with Redis; Chapter 5: Employing Streams; Introduction; Consuming streams; Playing with pipes; Making stream interfaces
- Streaming across Node processesChapter 6: Going Real Time; Introduction; Creating a WebSocket server; Cross-browser real-time logic with Socket. IO; Remote Procedure Calls with Socket. IO; Creating a real-time widget; Chapter 7: Accelerating Development with Express; Introduction; Generating Express scaffolding; Managing server tier environments; Implementing dynamic routing; Templating in Express; CSS preprocessors with Express; Initializing and using a session; Making an Express web app; Chapter 8: Implementing Security, Encryption, and Authentication; Introduction
- Implementing Basic AuthenticationHashing passwords; Implementing Digest Authentication; Setting up an HTTPS web server; Preventing cross-site request forgery; Chapter 9: Integrating Network Paradigms; Introduction; Sending an e-mail; Sending an SMS; Communicating with TCP; Creating an SMTP server; Implementing a virtual hosting paradigm; Chapter 10: Writing Your Own Node Modules; Introduction; Creating a test-driven module specification; Writing a functional module mock-up; Refactoring with prototypical inheritance; Extending a module's API; Deploying a module to npm
- Chapter 11: Taking It LiveIntroduction; Deploying an app to a server environment; Automatic crash recovery; Continuous deployment; Hosting with a Platform as a Service provider; Index