Learn Cloudflare Workers - Full Course for Beginners
HTML-код
- Опубликовано: 16 июл 2024
- Learn how to build your first Cloudflare Workers application and deploy it to Cloudflare's global network. If you don’t already have an account sign up for a free Workers account today 🔗 workers.cloudflare.com!
👨🏫 Hosted by Kristian Freeman, Cloudflare Developer Advocate
🔗 / kristianf_
🔗 Get Started guide for Cloudflare Workers: developers.cloudflare.com/wor...
🔗 Source code for this video available on GitHub: github.com/kristianfreeman/wo...
📺 Watch the next video in this series: • Stateful Apps with Clo...
⚡ Chapters
☁️ 00:00:00 Introduction
☁️ 00:01:02 Setup a new Cloudflare Account
☁️ 00:03:08 Creating first Worker
☁️ 00:05:08 Writing code
☁️ 00:09:12 What is Wrangler?
☁️ 00:10:44 Log in to Cloudflare
☁️ 00:11:50 Deploy your application
☁️ 00:12:50 Building your app locally
☁️ 00:18:43 Looking at your first Workers code
☁️ 00:12:50 Building your app locally
☁️ 00:25:20 How to configure your Workers application
☁️ 00:31:00 Configuring Cloudflare services in your app
☁️ 00:32:50 Adding the Hono framework
☁️ 00:37:47 Integrating Cloudflare AI
☁️ 00:44:17 Writing your first Cloudflare AI code
☁️ 00:53:02 What else can you do with Cloudflare Workers?
☁️ 00:56:12 Next steps
☁️ 00:58:44 Conclusion
---
📚 Resources
Join the Cloudflare Developers Discord: discord.cloudflare.com
Read the docs: developers.cloudflare.com/wor...
Explore related products: www.cloudflare.com/developer-...
See what you can build with Workers: workers.cloudflare.com/built-...
Explore our AI offerings: ai.cloudflare.com/ Наука
Absolutely amazing, thanks for that!
Keep them coming!
This is too good. More of this please :) Thank you Kristian.
First, amazing! Very well made video. Really like that you even managed to quickly cover wrangler and its use with some details about the CLI tool. Thank you.
Second, I need to find friends like you have whom I can call to get $100B fund to my silly ideas
I would watch that email trigger project.
just signed up for cloudflare and found this. great service, great free tier, great video! i love how CF supports and handles the free tier!
1:13 1:14
1:19
Р-н 1:26
What a great video, thanks! I haven't done serverless before (have done a lot of flask projects in the past), but going through the tutorial has been very smooth, I can see building lots of projects on the CF platform.
Great tutorial,Thank you CF :).We need more on Cloudflare Wokers.
WOW In the morning I saw examples were Hello Rust and re-checking again I got this.
Cloud provider: Let's make a tutorial about how to use our tool and UI
Also Cloud provider: Let's completely revamp our tool and UI so it looks different, uses different config and different commands
Cheers for this, and interesting to see Kitty in the wild
Please do a video on email triggers as you mentioned. I am trying to build something and the video will be super helpful
Amazing tutorial!
Thank you ❤❤❤❤
Tres interessant! Merci
Great video - thanks so much!
You're very welcome!
Great video
Enabling users to toggle local mode on and off is an excellent UX.
I would love to see the ai-email-summarizer!
Very good and informative
wait this is epic
great tutorial, are there also tutorials for streaming text responses with cloudflare workers?
This is a useful video. Can you do one with R2 on worker and it is being used as an assets cdn for images, videos, PDFs, etc.
I'd love to see the email trigger project that you made. Thank you.
would be cool to see the email ingestor + summarizer project 👍👍
Excellent video. Would love to see a video from you on email triggers aummarizing with AI.
can you do R2 tutorial please
can we get a sample of a react server components and cloudflare workers?
22:22
@@4ssarabio 22:35
@@4ssarabio0:16
0:35 0:36
0:42 0:43 0:44
I'm looking forward to tutorial on using new Python Worker.
when are more advanced courses are coming?
Can you use bun instead of npm?
Does anyone have any project ideas I could do using cloudflare workers?
great video thank you!
is there any good content on implementing libraries that have node dependencies? I've been struggling with node compat errors for some time now...
0:59
1:04 ❤
how can I get started, it's great
❤️🙏
I have a question. At 40:00 you create a new Ai() object. If creating new Ai() is very expensive and requires a lot of compute, is it possible to create that object outside of the GET request so you don't have to recreate a new Ai() on every request? I'm asking because I have a similar use case in my app where I need to create an expensive object, but once created, the methods on the object run very quickly. Is this a case for durable-objects offered by Cloudflare? Does this mean my app is stateful if I want a JavaScript objects to persist through requests?
What font are you using in KiTTy to get that fancy VIM status bar? Beautiful!
Nevermind, I figured it out. Had to install NeoVim and NVChad.
How to solve CORS error while submitting Blogger Form Widget, by using cloudflare custom email
❤
40:00
This is a test comment from Selenium!
Nobody’s using these 3rd tier “somebody else’s server” aka “cloud” services
? Do you not know who cloudflare is? How much of the internet they serve?
Also “cloud services” are HUGE
@@ND6K Nobody uses them to host apps. Couldn’t care less about their unrelated services.
@@JohnSmith-op7lsLmao so much overconfidence..
Workers are used by a lot of companies.
Do you know vercel edge middleware is powerful by workers??
@@JohnSmith-op7ls come out from your cave
You know this how?
It was good up to Env. The template is a little different now has 'worker-configuration.d.ts' interface Env {
} and now has index.ts.
const app = new Hono(); // Fails with error message:
Type '{ Bindings: Env; }' does not satisfy the constraint 'Env'.
Types of property 'Bindings' are incompatible.
Type 'Env' is not assignable to type 'Bindings'.
For instantiating hono, you don't need to write . also the AI bindings can be enabled in the toml file. it works but Typescript still nags though 🤦
You can enable the AI binding in the toml file and then include in your index.ts:
type Env = {
AI: Ai
}
const app = new Hono(()
The @cloudflare/ai package used here is deprecated but the run command can be called directly from the AI binding as per the updated docs. However, doing this I get the following TypeError: Argument of type '"@cf/thebloke/mistral-7b-instruct-v0.1"' is not assignable to parameter of type 'BaseAiImageToTextModels'. Typescript assumes the wrong overload due to the messages object not being interpreted correctly. I fixed the error by defining messages with the type RoleScopedChatInput[]
Using Kitty. A man with taste 🤌