PacktLib: Express Web Application Development

Express Web Application Development

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

What is Express?

What is Express?

Installing Express

The stuff that makes up Express

Concepts used in Express

Summary

Your First Express App

Your first Express app

Auto-generating an Express app

Empowering Express with middlewares

Empowering Express with Node modules

Logging requests to the App

Using a configuration file

Setting and getting application options

Express in different environments

Summary

Understanding Express Routes

What are Routes?

Revisiting the router middleware

Defining routes for the app

How to handle routes

How to organize routes

Summary

Response From the Server

A primer on HTTP response

HTTP response in Express

Summary

The Jade Templating Language

What is Jade?

Generating HTML tags

Creating text content

Filters

Declaring the document's Doctype

Programmability in Jade

Modularization

Escaping

Comments

Summary

The Stylus CSS Preprocessor

Introduction

Enabling Stylus in Express

Selectors

Rules

Programmability

Built-in functions

Summary

Forms, Cookies, and Sessions

Using forms to submit data

Data in named segments

Using cookies to store data

Using sessions to store data

Summary

Express in Production

What the is production environment?

Benchmarking the app

Creating an app cluster

Handling critical events

Ensuring uptime

Using a reverse proxy

Summary

Index