Loading…
Transcript

Amazon Dynamodb

  • NoSQL Database
  • Seriously Fast
  • A little pricey, but worth it
  • Fully managed service
  • It’s low-cost
  • Secure
  • Optional Caching

Amazon API Gateway

AWS Lambda

  • Runs your code, no server needed
  • Pricing based on # of request & execution time

Creating the API

Create a Resource

WP REST API

Enable CORS

Method Request - API Key Required

Integration Request - Lambda Function

Callback Function

Preparing Data

Errors

Custom Endpoints

Register the Route

For /posts resource created a post method

Integration Request - Lambda Function

Awesome Cat Blog

Amazon S3

  • Simple storage system
  • Lowcost
  • Available
  • Scalable

Using WordPress REST API, AngularJS, S3, AWS Gateway API, AWS Lambda & AWS Dynamodb

AngularJS

Why AngularJs? Easy prototyping.

What We Get

Single Post

Loop for Posts

Calling the WP REST API

Routing

Random WP Plugin

Base Template

Hang in there, almost done

So far we’ve needed to keep WordPress hosted, let’s change that.

Create a publish post hook

Filter post_link

Much Better

Update the route

After deploying the API.. Update the URL

Spread our cat blog joy.

Because, who doesn't like cats

WP REST API & AWS

Let's make an awesome cat blog

Adam Bradford

Director of Web Development at Highforge

twitter ~ @admbradford