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/
  • НаукаНаука

Комментарии • 66

  • @frankdrolet9439
    @frankdrolet9439 4 месяца назад +5

    Absolutely amazing, thanks for that!
    Keep them coming!

  • @sureshkumargondi4631
    @sureshkumargondi4631 4 месяца назад +12

    This is too good. More of this please :) Thank you Kristian.

  • @v1d300
    @v1d300 4 месяца назад +5

    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.

  • @reFLEQzion
    @reFLEQzion 3 месяца назад +6

    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!

  • @yosemitebandit
    @yosemitebandit 2 месяца назад

    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.

  • @zygote846
    @zygote846 Месяц назад +1

    Great tutorial,Thank you CF :).We need more on Cloudflare Wokers.

  • @ShuklaAbhijeet
    @ShuklaAbhijeet 4 месяца назад +1

    WOW In the morning I saw examples were Hello Rust and re-checking again I got this.

  • @luiswebdev8292
    @luiswebdev8292 Месяц назад +1

    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

  • @RobertMcGovernTarasis
    @RobertMcGovernTarasis 3 месяца назад +1

    Cheers for this, and interesting to see Kitty in the wild

  • @VenkatRamanaDevarakonda
    @VenkatRamanaDevarakonda 3 месяца назад +2

    Please do a video on email triggers as you mentioned. I am trying to build something and the video will be super helpful

  • @enghimanshu
    @enghimanshu Месяц назад

    Amazing tutorial!

  • @Anowarulislam-kl8hx
    @Anowarulislam-kl8hx 2 месяца назад

    Thank you ❤❤❤❤

  • @LeLettreDeLiaEtDeLaTech
    @LeLettreDeLiaEtDeLaTech 4 месяца назад +1

    Tres interessant! Merci

  • @richardmilton7948
    @richardmilton7948 13 дней назад +1

    Great video - thanks so much!

  • @junepark4104
    @junepark4104 3 месяца назад

    Great video

  • @jonathanoberlander5227
    @jonathanoberlander5227 3 месяца назад +1

    Enabling users to toggle local mode on and off is an excellent UX.

  • @markhristov7171
    @markhristov7171 4 месяца назад +3

    I would love to see the ai-email-summarizer!

  • @Danielo515
    @Danielo515 Месяц назад

    Very good and informative

  • @nickgray
    @nickgray 4 месяца назад +3

    wait this is epic

  • @sahil.lalani
    @sahil.lalani Месяц назад +1

    great tutorial, are there also tutorials for streaming text responses with cloudflare workers?

  • @ManasMadrecha
    @ManasMadrecha 3 месяца назад +2

    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.

  • @mdfaran7150
    @mdfaran7150 4 месяца назад +1

    I'd love to see the email trigger project that you made. Thank you.

  • @yosemitebandit
    @yosemitebandit 2 месяца назад

    would be cool to see the email ingestor + summarizer project 👍👍

  • @JohnathanHendrix
    @JohnathanHendrix 2 месяца назад

    Excellent video. Would love to see a video from you on email triggers aummarizing with AI.

  • @scotly_emi
    @scotly_emi 4 месяца назад +2

    can you do R2 tutorial please

  • @rtorcato
    @rtorcato 4 месяца назад +13

    can we get a sample of a react server components and cloudflare workers?

  • @davepratt8753
    @davepratt8753 3 месяца назад

    I'm looking forward to tutorial on using new Python Worker.

  • @jimshtepa5423
    @jimshtepa5423 3 месяца назад

    when are more advanced courses are coming?

  • @aemadrid
    @aemadrid Месяц назад

    Can you use bun instead of npm?

  • @litic
    @litic 4 месяца назад +1

    Does anyone have any project ideas I could do using cloudflare workers?

  • @webbae
    @webbae 3 месяца назад

    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...

    • @sashka056
      @sashka056 2 месяца назад +1

      0:59
      1:04 ❤

  • @user-jg4bl4pt4q
    @user-jg4bl4pt4q 2 месяца назад

    how can I get started, it's great

  • @bahram9172
    @bahram9172 2 месяца назад

    ❤️🙏

  • @philodox13
    @philodox13 2 месяца назад

    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?

  • @djSiMuL
    @djSiMuL Месяц назад

    What font are you using in KiTTy to get that fancy VIM status bar? Beautiful!

    • @djSiMuL
      @djSiMuL Месяц назад

      Nevermind, I figured it out. Had to install NeoVim and NVChad.

  • @udayignet6119
    @udayignet6119 3 месяца назад

    How to solve CORS error while submitting Blogger Form Widget, by using cloudflare custom email

  • @zahrataheri3445
    @zahrataheri3445 2 месяца назад

  • @priyasinha0911
    @priyasinha0911 25 дней назад

    This is a test comment from Selenium!

  • @JohnSmith-op7ls
    @JohnSmith-op7ls 4 месяца назад +2

    Nobody’s using these 3rd tier “somebody else’s server” aka “cloud” services

    • @ND6K
      @ND6K 4 месяца назад +5

      ? Do you not know who cloudflare is? How much of the internet they serve?
      Also “cloud services” are HUGE

    • @JohnSmith-op7ls
      @JohnSmith-op7ls 4 месяца назад

      @@ND6K Nobody uses them to host apps. Couldn’t care less about their unrelated services.

    • @jitx2797
      @jitx2797 4 месяца назад

      ​@@JohnSmith-op7lsLmao so much overconfidence..
      Workers are used by a lot of companies.
      Do you know vercel edge middleware is powerful by workers??

    • @pushkarkathayat7893
      @pushkarkathayat7893 3 месяца назад

      @@JohnSmith-op7ls come out from your cave

    • @RobertMcGovernTarasis
      @RobertMcGovernTarasis 3 месяца назад +2

      You know this how?

  • @marketfinds
    @marketfinds 2 месяца назад +2

    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'.

    • @biscuithammer
      @biscuithammer 2 месяца назад

      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 🤦

    • @columkelly99
      @columkelly99 17 дней назад

      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(()

  • @columkelly99
    @columkelly99 17 дней назад

    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[]

  • @sharanupst
    @sharanupst Месяц назад

    Using Kitty. A man with taste 🤌