Pro Express.js: Master Express.js: The Node.js Framework for Your Web Development

Azat Mardan

Language: English

Publisher: Apress

Published: Dec 22, 2014

Description:

**Pro Express.js is for the reader who wants to quickly get up-to-speed with Express.js, the flexible Node.js framework. Author Azat Mardan clearly explains how to start developing with Express.js with a basic 'Hello World', and then delves into a deep API reference, before looking at common and abstract development problems. Lastly, you will learn how to build a series of real-world apps in order to cement your knowledge.

**

In order to get the best from this book, you will be familiar with Node.js scripts and able to install packages using npm. In the deep API reference, each aspect of the Express.js API is explained clearly with a simple exercise to demonstrate its usage. This includes configuration, settings and environments; different middleware and its uses; templating engines; extracting parameters and routing; request and response; error handling; and running an app. In the next part you'll delve into abstraction, streams, authentication, multithreading, Socket.io, security, and more complex modules. You will also learn about smaller frameworks built using Express.js, such as Sails.js, and Derby. Finally you'll build real-world apps including a REST API, Todo App, and Instagram gallery.

Express.js is used by a range of well-known companies such as MySpace and Storify, and it's becoming more and more likely that it'll be a required skill for new developers. With this book you can skip learning via complicated documentation, and get the information from a developer who's been using Express.js for long enough to explain things well. Add Pro Express.js to your library today.

**

**

What you’ll learn

  • How to start using Express.js efficiently.
  • How each feature of Express.js actually works, from config to routing, and more.
  • What frameworks have been built using Express.js and why you might use them in your work.
  • How to apply Express.js to real-world projects.

Who this book is for

This book is for the reader who is familiar with Node.js and can install packages with npm. They want to learn Express.js and quickly understand each feature of the API, in order to use it efficiently in their everyday development.

Table of Contents

Part One: Getting Started

  1. Starting with Express.js

  2. ‘Hello World’ Example

Part Two: Deep API Reference

  1. Configuration, Settings and Environments

  2. Working with Middleware

  3. Templating Engines and Consolidate.js

  4. Parameters and Routing

  5. Express.js Request Object

  6. Express.js Response Object

  7. Error Handling and Running an App

Part Three: Solving Common and Abstract Problems

  1. Abstraction

  2. Database, Keys and Stream Tips

  3. Redis and Authentication Patterns

  4. Multithreading with Clusters

  5. Applying Stylus, Less, and Sass

  6. Security Tips

  7. Socket.IO and Express.js

  8. Domain and Express.js

  9. Sails.js, Derby, LoopBack and Other Framework Usage

Part Four: Tutorials and Examples

  1. Instagram Gallery

  2. Todo App

  3. REST API

  4. HackHall

  5. Appendix A: Related Reading and Resources

  6. Appendix B: Migrating Express.js 3.x to 4.x: Middleware, Route and Other Changes

  7. Appendix C: Express js 4 Cheat Sheet

  8. Appendix D: ExpressWorks

**