Node.js Recipes: A Problem-Solution Approach

Bok av Cory Gackenheimer
Node.js Recipesis your one-stop reference for learning how to solve Node.js problems. Node.js is the de facto framework for building JavaScript-powered servers. You will first be introduced to this exciting technology and what it can do, then learn through comprehensive and easy-to-follow recipes that use a problem-solution approach.Node.js Recipesteaches you to fully utilize the Node.js API, and leverage existing modules to build truly exciting projects. Because Node.js is written in JavaScript on the server, it is accessible to those who not only relish in server-side programming but also web developers who understand the ubiquitous language of the web. Node.js Recipes covers all the essential ingredients required to become a seasoned Node.js developer in no time - become a Node.js pro today! What youll learn Learn Node.jss beginnings and what problems it addresses Build an understanding of Node.jss native capabilities Create servers that communicate via TCP/IP, HTTP, and HTTPS Understand and implement test-driven development practices Successfully work with FileSystem, events, and child processes Create a WebSocket server, use Socket.io, and frameworks such as ExpressJS and Yahoo! Mojito Connect to a DataStore using Mongoose, MongoDB, MySQL and CouchDB Implement security and cryptography using HMAC and TLS Test synchronous and asynchronous code, and build a full test suite Debug and deploy your application to Heroku, Nodejitsu and Windows Azure Use Amazon Web Services to successfully host your Node.js application Who this book is for Node.js Recipes is for the reader who has some familiarity with JavaScript. They may have experience writing server-side JavaScript, but would like to get a more sound understanding of the capabilities that Node.js holds. This book will give them recipes enabling them to hone their JavaScript skills in a way that will harness Node.js and help them wrangle JavaScript on the server. Table of Contents Understanding Node.js Networking with Node.js Working with the FileSystem Building a Web Server Using Events and Child Processes Implementing Security and Cryptography Discovering Other Node.js Modules Creating a WebSocket Server Using Web Server Frameworks Connecting to a DataStore Testing in Node.js Debugging and Deploying your Application