Member-only story
Create and Deploy Your First JavaScript Serverless Worker
Beginner guide to building and deploying serverless workers for free
Last week I wrote an article about the tools I use the most when working with JavaScript. Cloudflare workers and wranglers were on that list. Today, you’ll get to know why and how I use them.
You’ll learn to deploy a serverless worker, which is extremely useful in many situations.
For example, you can compress IPFS pinning in a simple worker request and allow users to upload to IPFS while still masking your API keys as you'd do in a traditional backend.
I also plan to make this a series to cover creating APIs on CF workers and explain topics like dealing with CORS, interacting with the native KV store, and so on. If you are serious about building scalable serverless APIs, stay tuned.
What Are Cloudflare Workers?
Let’s start with the basics, what are CF workers, and how do they work?
CF workers provide an environment to create applications without taking care of the infrastructure. They are directly run by the Cloudflare network, which consists of various servers distributed all across the globe. In addition, the runtime offers most of the APIs that are implemented…