Advanced Express Web Application Development

For experienced JavaScript developers this book is all you need to build highly scalable, robust applications using Express. It takes you step by step through the development of a single page application so you learn empirically.
Preview in Mapt

Advanced Express Web Application Development

Andrew Keig

1 customer reviews
For experienced JavaScript developers this book is all you need to build highly scalable, robust applications using Express. It takes you step by step through the development of a single page application so you learn empirically.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$39.99
$29.99p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Advanced Express Web Application Development Book Cover
Advanced Express Web Application Development
$ 23.99
$ 16.80
Mastering Express Web Application Development [Video] Book Cover
Mastering Express Web Application Development [Video]
$ 94.99
$ 80.75
Buy 2 for $34.30
Save $84.68
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783282494
Paperback148 pages

Book Description

Building an Express application that is reliable, robust, maintainable, testable, and can scale beyond a single server requires a bit of extra thought and effort. Express applications that need to survive in a production environment will need to reach out to the Node ecosystem and beyond, for support.

You will start by laying the foundations of your software development journey, as you drive-out features under test. You will move on quickly to expand on your existing knowledge, learning how to create a web API and a consuming client. You will then introduce a real-time element in your application.

Following on from this, you will begin a process of incrementally improving your application as you tackle security, introduce SSL support, and how to handle security vulnerabilities. Next, the book will take you through the process of scaling and then decoupling your application. Finally, you will take a look at various ways you can improve your application's performance and reliability.

Table of Contents

Chapter 1: Foundations
Feature set
Installation
package.json
Testing Express with Mocha and SuperTest
Feature: Heartbeat
Continuous testing with Mocha
Code coverage with Mocha and JSCoverage
Configuring Express with Nconf
Extracting routes
404 handling middleware
Logging middleware
Logging with Winston
Task automation with Grunt
Summary
Chapter 2: Building a Web API
Persisting data with MongoDB and Mongoose
GitHub tokens
Feature: Create a project
Feature: Get a project
Feature: Edit a project
Feature: Delete a project
Feature: List projects
GitHub API
Feature: List repositories
Feature: List commits
Feature: List issues
Validating parameters with param middleware
Route improvements
Summary
Chapter 3: Templating
Server-side templating
Feature: Master Page
Package management with Bower
Templates
Client-side development with Backbone.js
Feature: List projects
Feature: List repositories
Feature: Create a project
Feature: Edit a project
Feature: Delete a project
Feature: List commits
Feature: List issues
Summary
Chapter 4: Real-time Communication
Caching data with Redis
Populating Redis
Socket.IO
Socket.IO on the client
Scheduling Redis population
Summary
Chapter 5: Security
Setting up Passport
Acceptance testing with Cucumber and Zombie.js
Feature: Authentication
Securing our site with HTTPS
Sharing Express sessions with Socket.IO
Cross-site request forgery
Improving security with HTTP headers and helmet
Summary
Chapter 6: Scaling
Scaling Express sessions with Redis
Scaling Socket.IO with Redis
Scaling Express horizontally
Vertical scale with Cluster
Balancing load with Hipache
Summary
Chapter 7: Production
Error handling, domains, and crash-only design
Redis sessions
SSL termination
Caching
Favicon
Compression
Logging
Summary

What You Will Learn

  • Drive Express development via test
  • Build and consume a RESTful web API using client and server-side templating
  • Secure and protect Express with passport authentication and SSL via stud
  • Scale Express beyond a single server with Redis and Hipache
  • Decouple Express for improved scalability and maintainability
  • Support real-time application development with Socket.IO
  • Handle failures with a minimum impact to service availability using cluster and domains
  • Understand and cope with Express limitations, including when and where to go for help

Authors

Table of Contents

Chapter 1: Foundations
Feature set
Installation
package.json
Testing Express with Mocha and SuperTest
Feature: Heartbeat
Continuous testing with Mocha
Code coverage with Mocha and JSCoverage
Configuring Express with Nconf
Extracting routes
404 handling middleware
Logging middleware
Logging with Winston
Task automation with Grunt
Summary
Chapter 2: Building a Web API
Persisting data with MongoDB and Mongoose
GitHub tokens
Feature: Create a project
Feature: Get a project
Feature: Edit a project
Feature: Delete a project
Feature: List projects
GitHub API
Feature: List repositories
Feature: List commits
Feature: List issues
Validating parameters with param middleware
Route improvements
Summary
Chapter 3: Templating
Server-side templating
Feature: Master Page
Package management with Bower
Templates
Client-side development with Backbone.js
Feature: List projects
Feature: List repositories
Feature: Create a project
Feature: Edit a project
Feature: Delete a project
Feature: List commits
Feature: List issues
Summary
Chapter 4: Real-time Communication
Caching data with Redis
Populating Redis
Socket.IO
Socket.IO on the client
Scheduling Redis population
Summary
Chapter 5: Security
Setting up Passport
Acceptance testing with Cucumber and Zombie.js
Feature: Authentication
Securing our site with HTTPS
Sharing Express sessions with Socket.IO
Cross-site request forgery
Improving security with HTTP headers and helmet
Summary
Chapter 6: Scaling
Scaling Express sessions with Redis
Scaling Socket.IO with Redis
Scaling Express horizontally
Vertical scale with Cluster
Balancing load with Hipache
Summary
Chapter 7: Production
Error handling, domains, and crash-only design
Redis sessions
SSL termination
Caching
Favicon
Compression
Logging
Summary

Book Details

ISBN 139781783282494
Paperback148 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
MEAN Web Development Book Cover
MEAN Web Development
$ 29.99
$ 3.00
Software Testing with Visual Studio Team System 2008 Book Cover
Software Testing with Visual Studio Team System 2008
$ 29.99
$ 21.00
Node Cookbook: Second Edition Book Cover
Node Cookbook: Second Edition
$ 29.99
$ 21.00
AngularJS Directives Book Cover
AngularJS Directives
$ 19.99
$ 2.00