Express Web Application Development

Express Web Application Development pdf epub mobi txt 电子书 下载 2025

出版者:Packt Publishing
作者:Hage Yaapa
出品人:
页数:236
译者:
出版时间:2013-6
价格:0
装帧:平装
isbn号码:9781849696548
丛书系列:
图书标签:
  • Web开发
  • Node.js
  • Express
  • 计算机
  • Web
  • Express
  • Node
  • js
  • Web开发
  • JavaScript
  • 后端开发
  • RESTful API
  • MVC
  • Web应用
  • 服务器端
  • 编程
想要找书就要到 小美书屋
立刻按 ctrl+D收藏本页
你会得到大惊喜!!

具体描述

Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications. It provides a thin layer of features fundamental to any web application, without obscuring features that developers know and love in node.js.

"Express Web Application Development" is a comprehensive guide for those looking to learn how to use the Express web framework for web application development.

Starting with the initial setup of the Express web framework, "Express Web Application Development" helps you to understand the fundamentals of the framework. By the end of "Express Web Application Development", you will have acquired enough knowledge and skills to create production-ready Express apps. All of this is made possible by the incremental introduction of more advanced topics, starting from the very essentials.

On the way to mastering Express for application development, we teach you the more advanced topics such as routes, views, middleware, forms, sessions, cookies and various other aspects of configuring an Express application. Jade; the recommended HTML template engine, and Stylus; the CSS pre-processor for Express, are covered in detail.

Last, but definitely not least, Express Web Application Development also covers practices and setups that are required to make Express apps production-ready.

Approach

"Express Web Application Development" is a practical introduction to learning about Express. Each chapter introduces you to a different area of Express, using screenshots and examples to get you up and running as quickly as possible.

Who this book is for

If you are looking to use Express to build your next web application, "Express Web Application Development" will help you get started and take you right through to Express' advanced features. You will need to have an intermediate knowledge of JavaScript to get the most out of this book.

作者简介

Hage Yaapa

Hage Yaapa is a contributing developer of Express.js and the head of Web and Node.js development at Sourcebits.

He joined one of the best medical schools in India, JIPMER, to become a doctor, but dropped out to pursue his burning passion for computers and the Internet. He has been creating websites and apps since 1999 using a very wide array of web technologies. He is a self-taught programmer and everything he knows about technology, he learned on his own from the Internet and books.

Yaapa blogs about Node.js, Express, and other web technologies on his website www.hacksparrow.com, as Captain Hack Sparrow.

目录信息

Table of Contents
Preface
Chapter 1: What is Express?
Chapter 2: Your First Express App
Chapter 3: Understanding Express Routes
Chapter 4: Response From the Server
Chapter 5: The Jade Templating Language
Chapter 6: The Stylus CSS Preprocessor
Chapter 7: Forms, Cookies, and Sessions
Chapter 8: Express in Production
Index
Preface
Up
Chapter 1: What is Express?
What is Express?
The story of Express
Installing Express
The stuff that makes up Express
The application object
The request object
The response object
Concepts used in Express
Asynchronous JavaScript
Node modules
Express apps are Node modules
Middlewares
Request flow
Node HTTP/HTTPS API
Summary
Up
Chapter 2: Your First Express App
Your first Express app
The Express manifest file
A very basic Express app
Starting and stopping the app
Analyzing the output
Express app with views
A public directory for the 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
Up
Chapter 3: Understanding Express Routes
What are Routes?
A quick introduction to HTTP verbs
Revisiting the router middleware
Defining routes for the app
Route identifiers
Order of route precedence
How to handle routes
How to organize routes
Using Node modules
Namespaced routing
Resourceful routing
Making a choice
Summary
Up
Chapter 4: Response From the Server
A primer on HTTP response
HTTP status codes
1xx
2xx
3xx
4xx
5xx
HTTP response headers
Media types
HTTP response in Express
Setting the HTTP status code
Setting HTTP headers
Sending data
Plain text
HTML
JSON
JSONP
Serving static files
Serving files programmatically
Serving error pages
Content negotiation
Redirecting a request
Summary
Up
Chapter 5: The Jade Templating Language
What is Jade?
Generating HTML tags
Hierarchy of HTML elements
Assigning IDs
Assigning classes
Specifying HTML attributes
Creating text content
Filters
Declaring the document's Doctype
Programmability in Jade
Variables
Interpolation
Control structures
JavaScript constructs
Jade constructs
Modularization
Includes
Template inheritance
Mixins
Escaping
Comments
Summary
Up
Chapter 6: The Stylus CSS Preprocessor
Introduction
Enabling Stylus in Express
Selectors
Selector blocks
Hierarchy
Rules
@import
@media
@font-face
@keyframes
@extend
@css
Programmability
Variables
Literals
Lists
Tuples
Mixins
Functions
Comments
Operators
Conditionals
if, else if, and else
unless
Built-in functions
Summary
Up
Chapter 7: Forms, Cookies, and Sessions
Using forms to submit data
Handling GET submissions
Reading form data
Reading URL query parameters
Handling multiple options
Handling POST submissions
Enabling POST data parsing
Reading form data
Handling text-only forms
Handling file uploads
More about file uploads
Submission via simulated methods
Data in named segments
Reading data
Using cookies to store data
Creating cookies
Reading cookies
Updating cookies
Session cookies
Signed cookies
Deleting cookies
Using sessions to store data
Cookie-based sessions
Session store-based sessions
MemoryStore
RedisStore
MongoStore
Session variables
Setting session variables
Reading session variables
Updating session variables
Deleting session variables
Deleting a session
Deleting a cookie-based session
Deleting a session store-based session
Summary
Up
Chapter 8: Express in Production
What the is production environment?
What changes in production mode?
Simulating production environment
Benchmarking the app
Creating an app cluster
Handling critical events
Closing the server
Handling uncaught errors
Using try-catch to catch uncaught errors
Using domains to handle uncaught errors
What to do in case of uncaught errors – to terminate the process or not to terminate?
Handling process termination
Ensuring uptime
Forever
Upstart
Using a reverse proxy
The trust proxy option
Summary
Up
Index
· · · · · · (收起)

读后感

评分

评分

评分

评分

评分

用户评价

评分

初学者必读,Node.js网站开发初学者必读手册,看了很久了,豆瓣更新太慢

评分

初学者必读,Node.js网站开发初学者必读手册,看了很久了,豆瓣更新太慢

评分

入门的书,如果你不想读文档,那么这本书可以作为入门的书来读。不过读一下第1、2、3、4、7章就够了。

评分

入门的书,如果你不想读文档,那么这本书可以作为入门的书来读。不过读一下第1、2、3、4、7章就够了。

评分

初学者必读,Node.js网站开发初学者必读手册,看了很久了,豆瓣更新太慢

本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度google,bing,sogou

© 2025 book.quotespace.org All Rights Reserved. 小美书屋 版权所有