Mastering web application development with Express : a comprehensive guide to developing production-ready web applications with Express /: a comprehensive guide to developing production-ready web applications with Express. (2014)
- Record Type:
- Book
- Title:
- Mastering web application development with Express : a comprehensive guide to developing production-ready web applications with Express /: a comprehensive guide to developing production-ready web applications with Express. (2014)
- Main Title:
- Mastering web application development with Express : a comprehensive guide to developing production-ready web applications with Express
- Further Information:
- Note: Alexandru Vlăduțu.
- Authors:
- Vladutu, Alexandru
- Contents:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Diving into Express; The best parts of Express; Comparing Express with other frameworks; Goal; Conventions; Databases; Views; Overall; Use cases; Complex applications with heavy I/O bound operations; Single-page applications; Reusable applications; Code sharing between the server and the client; A base to create more complex frameworks; Bad use cases; Express into the wild; Application structure; Group files by features; Model-View-Controller. Developing a real MVC applicationSummary; Chapter 2: Component Modularity Using Middleware; Connecting middleware; The functionality of middleware; Pushing items to an array; Looking at the execution flow using logs; Creating configurable middleware; Closures to the rescue; Caching middleware -- a practical example; A first try at the caching middleware; Measuring the performance benefits of the caching middleware; Making the caching middleware configurable; Environment-based loading of middleware; Express routes; Specifying the path; Reusable route handlers; Route wildcards. Ordering of middlewareHandling errors with middleware; Mounting subapplications; Replicating the middleware system; The main file; Handling requests; Demoing the application; Adding the routes handler; Summary; Chapter 3: Creating RESTful APIs; An overview of REST; HTTP methods (verbs); HTTP status codes; Successful 2xx; Redirection 3xx;Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Diving into Express; The best parts of Express; Comparing Express with other frameworks; Goal; Conventions; Databases; Views; Overall; Use cases; Complex applications with heavy I/O bound operations; Single-page applications; Reusable applications; Code sharing between the server and the client; A base to create more complex frameworks; Bad use cases; Express into the wild; Application structure; Group files by features; Model-View-Controller. Developing a real MVC applicationSummary; Chapter 2: Component Modularity Using Middleware; Connecting middleware; The functionality of middleware; Pushing items to an array; Looking at the execution flow using logs; Creating configurable middleware; Closures to the rescue; Caching middleware -- a practical example; A first try at the caching middleware; Measuring the performance benefits of the caching middleware; Making the caching middleware configurable; Environment-based loading of middleware; Express routes; Specifying the path; Reusable route handlers; Route wildcards. Ordering of middlewareHandling errors with middleware; Mounting subapplications; Replicating the middleware system; The main file; Handling requests; Demoing the application; Adding the routes handler; Summary; Chapter 3: Creating RESTful APIs; An overview of REST; HTTP methods (verbs); HTTP status codes; Successful 2xx; Redirection 3xx; Client error 4xx; Server error 5xx; SmartNotes application requirements; Creating the RESTful URLs of the application; Implementing the SmartNotes application; The bootstrapping phase; Dealing with validation; Creating a custom validation module. Improving performance with memoizationImplementing the models; Test helpers; The Note model; The User model; Functional tests and route implementation; User endpoints; Notes endpoints; API versioning; API rate limiting; Throttling; Facilitating caching; Content negotiation; Summary; Chapter 4: Leveraging the Power of Template Engines; The different types of template engines; Logic-less template engines; Template engines with logic; Programmatic template engines; View helpers and application-level data; Sharing code between templates with partial views; DRY templates with layouts. Template engine consolidation with consolidate.jsView caching in production; The view cache setting and its effect; Clearing the cache without a restart; Integrating a template engine with Express; Choosing a template engine; Summary; Chapter 5: Reusable Patterns for a DRY Code Base; Creating the MovieApp sample application; Application structure and required modules; Creating the server.js file; Creating the route handlers; Doing the heavy lifting inside the model; Wrapping it up; Error checks and callback functions; Tiny modules for better control flow; Ensuring a single callback execution. … (more)
- Publisher Details:
- Birmingham : Packt Publishing
- Publication Date:
- 2014
- Extent:
- 1 online resource
- Subjects:
- 005.7
COMPUTERS -- Programming -- Open Source
Web site development
Application software -- Development
COMPUTERS -- Internet -- Application Development
Application software -- Development
Web site development
Electronic books - Languages:
- English
- ISBNs:
- 9781783981090
1783981091
1322166099
9781322166094
1783981083
9781783981083 - Related ISBNs:
- 9781783981083
- Notes:
- Note: Includes bibliographical references and index.
Note: Print version record. - Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.87713
- Ingest File:
- 01_067.xml