illustration for Build a Serverless API with Cloudflare Workers
free

Build a Serverless API with Cloudflare Workers

47m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.6
94
people completed
Published 9 months ago
|
Updated 6 months ago

In this course, 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.

Free Community Resource

A Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.

What you'll learn:

  • Create a Cloudflare Workers project
  • Make API requests in a Workers function
  • Process incoming request data
  • Securely store API credentials
  • Source data from Cloudflare Workers
  • Deploy application to Cloudflare Pages
  • Secure an API with Access-Control-Allow-Headers

Questions to Think About:

  • How should I balance the tradeoffs between functionality and accessibility?
  • What level of control do you need to build successful solutions?
  • What is the best way to interact with data in my application?

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Great course! Handy and easy to follow.

    Julio Jordán
    3 weeks ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    i really like the structure of this course from a simple hello worker to an use case in web development

    Joaquin Ramos
    2 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Great content, very well explained! Thank you

    DavidJKTofan
    4 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Kristian is really good at explaining the concept of cloudflare workers and JavaScript in general

    Will Johnson
    5 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    It covers very basic stuff.More details regarding serverless functions would attract more participation

    Varun Goel
    5 months ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    The project was well structured and easy to follow. I really enjoyed how you also included creating a frontend and walked through on how to deploy from Github to Cloudflare Pages.

    Jon Sultana
    5 months ago

Course Content

47m • 10 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers
    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout
    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use
    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.