Stateful Apps with Cloudflare Workers 201 - Full Course (APIs, Workers KV, D1, SQLite, Prisma)

preview_player
Показать описание
Learn how to access external APIs, cache and retrieve data using Workers KV, and create SQL-driven applications with Cloudflare D1. We'll also look at some nifty integrations, like Prisma and D1! This video builds upon the foundations established in our "Learn Cloudflare Workers - Full Course for Beginners" video published in March 2024.

👨‍🏫 Hosted by Kristian Freeman, Cloudflare Developer Advocate

💡 Source code for this video available on GitHub

⚡ Chapters
☁️ 00:00 Introduction
☁️ 01:54 Integrating an External API
☁️ 02:54 Let's write some code!
☁️ 05:43 Using the fetch API
☁️ 10:19 What is Workers KV?
☁️ 12:16 Adding Workers KV
☁️ 19:42 What is Cloudflare D1?
☁️ 21:23 Building with D1
☁️ 24:40 Create a D1 database
☁️ 26:49 Create a D1 migration
☁️ 31:02 Adding example data
☁️ 32:05 Building the movie application
☁️ 41:47 Deploying the application
☁️ 43:21 Looking at the D1 + Prisma starter
☁️ 48:52 Conclusion

---

📚 Resources

Рекомендации по теме
Комментарии
Автор

Thanks for watching! What should our next course on YouTube cover?

CloudflareDevelopers
Автор

buddy thanks for coming back just donot get missing again

prashlovessamosa
Автор

Awesome. Thank you Cloudflare, Thank you Kristian Freeman.
- Z 🇧🇩

ur
Автор

Thanks for this video!
I've been working on a Prisma/D1/Hono API for the past while and would absolutely love to see some more content tailored to that.

It would be interesting to see how you tackle some of the issues I've run into when trying to create migrations for Prisma/D1.

exoup
Автор

How to copy on remote the date from local? With apply? When i execute with --command > file.sql, that tells me to do the same cmd with --remote but unlucky so far, no added rows into my d1

phantazzor
Автор

I was using Prisma and it was too slow with D1 when I had to do joins, for example some requests took 8 seconds, I changed to Drizzle and all requests take less than 1 second

lucaapa
Автор

Loved your video, but the only thing that I’m not able to get my head around. Is what font are you using?

gurvirbaraich
Автор

i was looking for something like this, thank you!

mystica
Автор

I would love to see an example of setting up a D1 project that uses a test database (for CI/CD and tests), local dev database and remote database. That is essential for real world coding.

shashydass
Автор

can i assume kv as a nosql db and d1 as a sql db?

Noumaan_Ahamed
Автор

"I wanna copy & paste as much as possible" hahah :D True

chillbro
Автор

would be cool to get deep dive on durable objects

msnegurski
Автор

nop, wont go for a future "120k" problem

xf
Автор

why is the audio out of sync with the person speaking?

irvyn
Автор

I tried the Cloudflare D1 for a Pages project and it was great, although I couldn't get around it dx (especially dev), but it works well on production.

I but the KV, please is it similar to something like Redix, and can it be used for a Pages project?

thedelanyo
Автор

you guys have to comment on recent 120k issue, otherwise you’re bleeding customers

shafu_xyz