February 11, 2018 • ☕️ 1 min read
If you’re anything like me and spent years working with REST Frameworks, you’ll probably be confused by this crazy GraphQL thing everyone seems to be talking about. Why would you even want to work with a graph database? (Just kidding - GraphQL is not a graph database, for clarity see here)
I’m going to show you how you can use Terraform (see my previous blog to get started with Terraform on a Mac) to setup your own GraphQL server.
A GraphQL backend can consist of just a few files:
The most complicated part of GraphQL in my opinion is setting up your infrastructure to run.
GraphQL has the potential to be infinitely scalable (bound by whichever data source you put behind it), so we’ll be setting up a Cloudfront CDN in front of an API Gateway, which will point to our Lambda containing our GraphQL function.
TODO: Add Github link to each step/commit with: