You are previewing Serverless Single Page Apps.
O'Reilly logo
Serverless Single Page Apps

Book Description

Don't waste your time building an application server. See how to build low-cost, low-maintenance, highly available, serverless single page web applications that scale into the millions of users at the click of a button. Quickly build reliable, well-tested single page apps that stay up and running 24/7 using Amazon Web Services. Avoid messing around with middle-tier infrastructure and get right to the web app your customers want.

Table of Contents

  1. <span xmlns="" xmlns:epub="" class="toc-secnum">&#160;</span>AcknowledgmentsAcknowledgments
  2. <span xmlns="" xmlns:epub="" class="toc-secnum">&#160;</span>IntroductionIntroduction
    1. Guiding Principles
    2. How to Read This Book
    3. Online Resources
  3. <span xmlns="" xmlns:epub="" class="toc-secnum">1. </span>Starting SimpleStarting Simple
    1. Serverless Web Applications
    2. Using Your Workspace
    3. Deploying to Amazon S3
    4. First Deployment
  4. <span xmlns="" xmlns:epub="" class="toc-secnum">2. </span>Routing Views with Hash EventsRouting Views with Hash Events
    1. Designing a Testable Router
    2. The Router Function
    3. Adding Routes
    4. Adding View Parameters
    5. Loading the Application
    6. Deploy Again
  5. <span xmlns="" xmlns:epub="" class="toc-secnum">3. </span>Essentials of Single Page AppsEssentials of Single Page Apps
    1. Creating a View
    2. Defining the Data Model
    3. Handling User Input
    4. Creating an Application Shell
    5. Using Custom Events
    6. Deploy Again
  6. <span xmlns="" xmlns:epub="" class="toc-secnum">4. </span>Identity as a Service with Amazon CognitoIdentity as a Service with Amazon Cognito
    1. Connecting to External Identity Providers
    2. Creating an Identity Pool
    3. Fetching a Google Identity
    4. Requesting AWS Credentials
    5. Creating a Profile View
    6. Deploy Again
  7. <span xmlns="" xmlns:epub="" class="toc-secnum">5. </span>Storing Data in DynamoDBStoring Data in DynamoDB
    1. Working with DynamoDB
    2. Creating a Table
    3. Authorizing DynamoDB Access
    4. Saving Documents
    5. Fetching Documents
    6. Data Access and Validation
    7. Deploy Again
  8. <span xmlns="" xmlns:epub="" class="toc-secnum">6. </span>Building (Micro)Services with LambdaBuilding (Micro)Services with Lambda
    1. Understanding Amazon Lambda
    2. Deploy First
    3. Writing Lambda Functions
    4. Invoking Lambda Functions
    5. Using the Amazon API Gateway
    6. Deploy Again
  9. <span xmlns="" xmlns:epub="" class="toc-secnum">7. </span>Serverless SecurityServerless Security
    1. Securing Your AWS Account
    2. Query Injection Attacks
    3. Cross-Site Scripting Attacks
    4. Cross-Site Request Forgery
    5. Wire Attacks and Transport Layer Security
    6. Denial-of-Service Attacks
    7. Deploy Again
  10. <span xmlns="" xmlns:epub="" class="toc-secnum">8. </span>Scaling UpScaling Up
    1. Monitor Web Services
    2. Analyze S3 Web Traffic
    3. Optimize for Growth
    4. Costs of the Cloud
    5. Deploy Again (and Again, and Again...)
  11. <span xmlns="" xmlns:epub="" class="toc-secnum">A1. </span>Installing Node.jsInstalling Node.js
  12. <span xmlns="" xmlns:epub="" class="toc-secnum">A2. </span>Assigning a Domain NameAssigning a Domain Name
  13. <span xmlns="" xmlns:epub="" class="toc-secnum">&#160;</span>BibliographyBibliography