0%

Book Description

Program your scalable network applications and web services with Node.js

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Learn how to use module patterns and Node Packet Manager (NPM) in your applications
  • Discover callback patterns in NodeJS
  • Understand the use Node.js streams in your applications

In Detail

Node.js is a platform that lets you use JavaScript to easily program scalable network applications and web services. Learn about the main concepts behind Node.js to get you started with this exciting technology.

Instant NodeJS Starter will begin with installation and your first Hello World HTTP server. This book will show you how you can use Node.js core modules and also how you can use patterns to create your own modules. It will also teach you about NPM and how you can use it to install any of the many available third-party libraries. The book then goes on to explain the three main patterns you need to understand to be able to fully use Node.js: the callback pattern, EventEmitter, and streams. All these patterns are presented with practical code examples that you can use immediately, getting you started quickly on this exciting technology.

Instant NodeJS Starter starts with the installation of Node.js and then shows you how to create your first Node.js HTTP server. By showing you the main Node.js concepts together with some working code samples, by the end of the book you will have created a set of working Node.js scripts to create servers and clients.You will learn how you can include and use Node.js core modules, and how you can use patterns to create your own modules. You will also learn how you can use NPM to pick, install, and use any of the many available third-party modules in your applications. You will learn how you can use the callback pattern and EventEmitter to control the asynchronous flow and the power of Node.js streams to make your application more scalable and responsive.

Instant Node.js Starter will show you the main concepts behind Node.js so that you feel comfortable to start building your scalable, event-driven network applications using JavaScript.

Table of Contents

  1. Instant Node.js Starter
    1. Instant Node.js Starter
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.packtpub.com
      1. Support files, eBooks, discount offers and more
    6. packtlib.packtpub.com
      1. Why Subscribe?
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. 1. Instant Node.js Starter
      1. So, what is Node.js?
      2. Installation
      3. Quick start
        1. Step 1 – Creating a Hello World HTTP server
        2. Step 2 – Launching the server
      4. Top 5 features you need to know about
        1. User modules
        2. Node Package Manager (NPM)
        3. The callback pattern
          1. Chaining I/O
        4. Event emitter
          1. Parallelizing I/O
        5. Streams
          1. The readable streams
          2. The writable streams
          3. The duplex streams
          4. Stream flow control
          5. Piping
          6. The transform streams
      5. People and places you should get to know
        1. Official sites
        2. Blogs
        3. API documentation
        4. NPM modules
        5. Github repository
        6. Community
        7. Twitter
13.58.82.79