更新时间:2021-08-13 17:04:34
封面
版权信息
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Chapter 1. What is Express?
What is Express?
Installing Express
The stuff that makes up Express
Concepts used in Express
Summary
Chapter 2. 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
Chapter 3. Understanding Express Routes
What are Routes?
Revisiting the router middleware
Defining routes for the app
How to handle routes
How to organize routes
Chapter 4. Response From the Server
A primer on HTTP response
HTTP response in Express
Chapter 5. 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
Chapter 6. The Stylus CSS Preprocessor
Introduction
Enabling Stylus in Express
Selectors
Rules
Programmability
Built-in functions
Chapter 7. Forms Cookies and Sessions
Using forms to submit data
Data in named segments
Using cookies to store data
Using sessions to store data
Chapter 8. Express in Production
What the is production environment?
Benchmarking the app
Creating an app cluster
Handling critical events
Ensuring uptime
Using a reverse proxy
Index