Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Build a Serverless API with Cloudflare Workers

via egghead.io

Overview

Kristian Freeman will teach you how to build and deploy a Serverless API with Cloudflare Workers. By learning how to build your own serverless JSON APIs, you can effectively manage a highly available backend for your projects, without needing to learn DevOps or manage services. :)
You will start by learning how to handle incoming HTTP requests so that you can work with existing clients, browsers, and mobile applications and accept data into your serverless functions.
Understanding how APIs work and how to interface with them is crucial. Traditionally, this is the realm of backend developers. That's why you will learn how to transform and return data from an API with Cloudflare Workers serving as "middleware."
Cloudflare Workers are written against a similar API to the W3C Service Workers standard. However, while Service Workers run inside the end user's browser, Cloudflare Workers run on Cloudflare's servers. This means that Cloudflare Workers can implement trusted code (which the client cannot tamper with), and will work no matter what browser the user is running. Making them potent for building APIs.
Finally, you'll come full circle and you'll use your new serverless API to build a React user interface frontend.
By the end of the course, you will be able to build a serverless JSON API from scratch using Cloudflare Workers.

Syllabus

  • Introduction to Build a Serverless API with Cloudflare Workers
  • Set up a New Cloudflare Workers Project with wrangler
  • Process Incoming Request Data Using the Request Class in Workers
  • Make API Requests in a Workers Function Using the Fetch API
  • Use Workers Secrets to Securely Store API Credentials
  • Transform and Return JSON Data From an API in Cloudflare Workers
  • Add CORS Headers to a Third Party API Response in a Workers API
  • Render Data from a Workers API Response in a React Application
  • Deploy a React Application Using Cloudflare Pages
  • Secure an API with Access-Control-Allow-Headers

Taught by

Kristian Freeman

Reviews

4.7 rating at egghead.io based on 65 ratings

Start your review of Build a Serverless API with Cloudflare Workers

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.