Szczegóły ebooka

Express Web Application Development. Here's a comprehensive guide to making the most of Express's flexibility in building web applications. With lots of screenshots and examples, it's the perfect step-by-step manual for those with an intermediate knowledge of JavaScript

Express Web Application Development. Here's a comprehensive guide to making the most of Express's flexibility in building web applications. With lots of screenshots and examples, it's the perfect step-by-step manual for those with an intermediate knowledge of JavaScript

Hage Yaaapa

Ebook
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.
  • Express Web Application Development
    • Table of Contents
    • Express Web Application Development
    • Credits
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Downloading the example code
      • Customer support
        • Errata
        • Piracy
        • Questions
    • 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
    • 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
    • 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
    • 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
    • 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 documents Doctype
      • Programmability in Jade
        • Variables
        • Interpolation
        • Control structures
          • JavaScript constructs
          • Jade constructs
            • if, else if, and else
            • for
            • each
            • while
            • unless
            • case
      • Modularization
        • Includes
        • Template inheritance
        • Mixins
      • Escaping
      • Comments
      • Summary
    • 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
            • Listed tuples
        • Mixins
        • Functions
        • Comments
        • Operators
        • Conditionals
          • if, else if, and else
          • unless
      • Built-in functions
      • Summary
    • 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
    • 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
    • Index
  • Tytuł: Express Web Application Development. Here's a comprehensive guide to making the most of Express's flexibility in building web applications. With lots of screenshots and examples, it's the perfect step-by-step manual for those with an intermediate knowledge of JavaScript
  • Autor: Hage Yaaapa
  • Tytuł oryginału: Express Web Application Development. Here's a comprehensive guide to making the most of Express's flexibility in building web applications. With lots of screenshots and examples, it's the perfect step-by-step manual for those with an intermediate knowledge of JavaScript.
  • ISBN: 9781849696555, 9781849696555
  • Data wydania: 2013-06-25
  • Format: Ebook
  • Identyfikator pozycji: e_3ctn
  • Wydawca: Packt Publishing