3 options
Mastering web application development with Express : a comprehensive guide to developing production-ready web applications with Express / Alexandru Vlăduțu.
EBSCOhost Academic eBook Collection (North America) Available online
EBSCOhost Academic eBook Collection (North America)- Format:
- Book
- Author/Creator:
- Vlăduțu, Alexandru, author.
- Series:
- Community experience distilled
- Language:
- English
- Subjects (All):
- Web site development.
- Physical Description:
- 1 online resource (358 p.)
- Edition:
- 1st ed.
- Place of Publication:
- Birmingham, [England] : Packt Publishing, 2014.
- Language Note:
- English
- Summary:
- If you are a Node.js developer who wants to take your Express skills to the next level and develop high performing, reliable web applications using best practices, this book is ideal for you. The only prerequisite is knowledge of Node.js.
- 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; 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
- Extending objects in a reusable way
- Notes:
- Description based upon print version of record.
- Includes bibliographical references and index.
- Description based on online resource; title from PDF title page (ebrary, viewed October 07, 2014).
- ISBN:
- 9781783981090
- 1783981091
- OCLC:
- 892044298
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.