How to create Cloudflare Workers without code, perfect for scaling Bubble apps.
Video tutorial - how to use ChatGPT to build a simple serverless app in under 20 minutes.
Hey there,
Welcome back to the NoCodeSaaS newsletter! It's been a few months since I last wrote - if you’ve been following on Twitter you might have seen that I’m helping to organize NoCodeUK - the UK’s first no code conference in London next month which has taken up more time than I expected!
You’ll find a exclusive discount code for the conference at the end of this newsletter if you’re interested in attending, it’s going to be a day to remember! 👀
I’m going to be getting back to my 60 days SaaS challenge next month after the conference, but I wanted to share something in this issue which I’ve found really useful recently - Cloudflare Workers.
It’s now possible to build Cloudflare Workers without being a programmer - I recently made one for my own app UserLoop which is now handling hundreds of thousands of requests for my app, and reducing my utilization of Bubble WU units.
I’ve put together a quick tutorial which shows you how to build a Cloudflare Worker using ChatGPT.
In just a few minutes we build a simple serverless app which accepts an incoming webhook - enriches it with data from an external weather API and forwards it on to an end destination (it could be Bubble - but could also be anywhere else!)
You don’t need to write any code - and it’s amazingly quick and easy.
What are Cloudflare Workers?
Cloudflare Workers are a bit like workflows in Bubble, except they execute short snippets of code. The main language they work with is Javascript but Python is also supported.
They’re super powerful, fast - and importantly cheap!
If you are doing a high volume of complex workflows in Bubble that interact with external data, the amount of WU's you use can add up quickly. Especially if you’re building an app that deals with lots of inbound external webhooks.
You get 100,000 requests a day for free - and if you need more than that you can get 10 million a month for only $5.
If you’re dealing with large volumes of data it is really worth considering making workers a part of your no code stack.
Here’s how the standard pricing from Cloudflare breaks down…
How to build Cloudflare Workers with NoCode
In this edition of the newsletter I show how easy it can be to use Cloudflare workers to take some of the load off of your Bubble app, and to perform operations with Cloudflare.
In the example tutorial, I show how to build a simple Worker which accepts an incoming webhook, calls an external weather API to get the weather for the requested location, and then append that data onto the original data and forward it on to it’s destination.
Of course - you might choose to do this inside a regular Bubble workflow, you can easily make calls using the API Connector.
But in some instances, you might want to fetch external data before it gets to Bubble - or you might simply want to try and make your Bubble app more efficient and cost effective by relying on Cloudflare to do more of the heavy lifting.
Check out the video tutorial at the top of this newsletter to see how to build your first worker - I think you’ll be impressed with what you can build just using ChatGPT. I show exactly how to write the prompts and everything you need to do it.
NoCodeUK - The UK’s first NoCode & AI Conference
I thought I’d also give a quick shout out to the conference I’m organizing on May 21st with Kieran and Ash. We’ve secured an incredible conference venue in central London and lined up some amazing speakers to share how they build and scale businesses without code.
We’re working really hard to make this an amazing event for the nocode community, you can find out more about some of the amazing speakers we’ve lined up on the official website here.
As a special thank you for being a subscriber of the NoCodeSaaS newsletter I’m offering a one off very special discount exclusively to subscribers - 50% off your ticket! To get the discount, head over to the official ticket site and enter the discount code NOCODESAAS to apply the discount.
It’s been such a pleasure to put this event together with the team - I can’t wait to see you there!
That’s it for this time - I’m excited to get back into a regular flow with this newsletter again over the coming weeks!
Any feedback, or topics you’d like me to cover? Hit reply - I love hearing from you!
Awesome stuff James! Hadn't seen anyone from Bubble-world make a tutorial on Cloudfare Workers and it's super easy to follow.