Express web application development : learn how to develop web applications with the Express framework from scratch /
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. If you are looking to use Express to build your next web application...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2013.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; 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; 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 outputExpress 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; 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 routingResourceful routing; Making a choice; Summary; 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; Chapter 5: The Jade Templating Language; What is Jade?; Generating HTML tags; Hierarchy of HTML elements; Assigning IDs; Assigning classes.
- Specifying HTML attributesCreating 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; 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 elseunless; Built-in functions; Summary; 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.