Node Cookbook
Read it now on the O’Reilly learning platform with a 10-day free trial.
O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.
Book description
A hands on approach to learning Node to equip and guide you in the art of asynchronous server side JavaScript with this book and ebook.
- Packed with practical recipes taking you from the basics to extending Node with your own modules.
- Create your own web server to see Node’s features in action.
- Work with JSON, XML, web sockets, and make the most of asynchronous programming.
In Detail
The principles of asynchronous event-driven programming are perfect for today's web, where efficient real-time applications and scalability are at the forefront. Server-side JavaScript has been here since the 90's but Node got it right. With a thriving community and interest from Internet giants, it could be the PHP of tomorrow.
"Node Cookbook" shows you how to transfer your JavaScript skills to server side programming. With simple examples and supporting code, "Node Cookbook" talks you through various server side scenarios often saving you time, effort, and trouble by demonstrating best practices and showing you how to avoid security faux pas.
Beginning with making your own web server, the practical recipes in this cookbook are designed to smoothly progress you to making full web applications, command line applications, and Node modules. Node Cookbook takes you through interfacing with various database backends such as MySQL, MongoDB and Redis, working with web sockets, and interfacing with network protocols, such as SMTP. Additionally, there are recipes on correctly performing heavy computations, security implementations, writing, your own Node modules and different ways to take your apps live
Table of contents
-
Node Cookbook
- Table of Contents
- Node Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Making a Web Server
- 2. Exploring the HTTP Object
- 3. Working with Data Serialization
-
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 and retrieving data with Mongoskin
- Storing data to CouchDB with Cradle
- Retrieving data from CouchDB with Cradle
- Accessing CouchDB changes stream with Cradle
- Storing and retrieving data with Redis
- Implementing PubSub with Redis
- 5. Transcending AJAX: Using WebSockets
- 6. Accelerating Development with Express
- 7. Implementing Security, Encryption, and Authentication
- 8. Integrating Network Paradigms
- 9. Writing Your Own Node Modules
- 10. Taking It Live
- Index
Product information
- Title: Node Cookbook
- Author(s): David Mark Clements
- Release date: July 2012
- Publisher(s): Packt Publishing
- ISBN: 9781849517188
You might also like
book
Node Cookbook - Third Edition
by David Mark Clements, Matthias Buus, Matteo Collina, Peter Elger
Over 60 high-quality recipes covering debugging, security, performance, microservices, web frameworks, databases, deployment and more; rewritten …
book
Learning Node
by Shelley Powers
Take your web development skills from browser to server with Node—and learn how to write fast, …
book
Node Cookbook - Fourth Edition
by Bethany Griggs
Discover practical recipes to get to grips with Node.js concepts and programming models for delivering a …
book
Node.js 8 the Right Way
by Jim Wilson
Node.js is the platform of choice for creating modern web services. This fast-paced book gets you …