Book Image

Node Web Development

By : David Herron
Book Image

Node Web Development

By: David Herron

Overview of this book

<p>Node is an exciting new technology stack that brings JavaScript to the server-side of web applications for the first time. Node means that JavaScript is no longer just for browsers. It's for web application development, it's for developing any internet protocol, it's for the real-time web, it's for command line scripts, and much more. <br /><br />Node Web Development gives you an excellent starting point straight into the heart of developing server side web applications with node. You will learn, through practical examples, how to use the HTTP Server and Client objects, the Connect and Express application frameworks, the algorithms for asynchronous execution, and use both SQL and MongoDB databases.<br /><br />This book is the ideal companion for getting started with Node. Starting with practical advice on installing Node for both development and application deployment, you will learn how to develop both HTTP Server and Client applications. Many different ways of working with Node are shown, including using database storage engines in applications and developing websites both with and without the Connect/Express web application framework. You will also get an introduction to Node’s CommonJS module system allowing you to implement an important subset of object-oriented design.</p>
Table of Contents (14 chapters)
Node Web Development
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


We learned a lot in this chapter about the following:

  • EventEmitters and their role in HTTP client and server objects

  • Using an EventEmitter to separate acting on HTTP request data from the mechanics of receiving that data

  • Listening to all the events of an HTTP object or other EventEmitter as a debugging aid

  • Implementing an HTTP server

  • Routing incoming requests in an HTTP server

  • Using the MIME protocol to identify content data type

  • Implementing an HTTP client

Now that we've learned the basics of implementing a web application with Node, we're ready to start towards useful applications. That means storing data somewhere, and acting on that data. In the next chapter, we'll look at several means of storing data and retrieving data from external datastores.