Cloudflare Workers with Bun, Hono and D1, everything you need to know

preview_player
Показать описание
In this video let's build a simple API application that will run on Cloudflare Workers with a D1 database. Hono is a great framework (especially for runtime like Cloudflare Workers) and we will use Bun as a package manager.
We will check how to develop locally and how to publish to production.

#bun #hono #cloudflare

Support the channel:

Follow me:

I'm truly grateful for your support, and thank you for watching! 🙏
Рекомендации по теме
Комментарии
Автор

☕ If you liked this video and want to support my channel, please consider buying me a coffee. Your contribution helps me create more content like this:

Please also subscribe to my other resources:

I'm truly grateful for your support, and thank you for watching! 🙏

andrey.fadeev
Автор

this is very informative, thank you Andrey.

engelshentenawy
Автор

I appreciate you for sharing this helpful information. Thank you very much! ☺️

JDanila
Автор

This is such an awesome tutorial, one thing I'd like to add is that In my case I wanted user IP Address from the request which you can do using this:

```
let ip = c.req.header("X-Client-IP") || || || || c.req.header("X-Real-IP");
```

BUT this will only work when the worker has been deployed, on local environment this results to null or undefined, and so far I couldn't find a way to get IP on local environment.

segsfault
Автор

Thank you for this, it was very helpful! I was very concerned after you nearly wrote burn a few times, what was going to happen to the code 😂

webdigga
Автор

Nice content you are providing. I am wondering, of Hono and Elysia, which framework do you prefer?

riscaverse
Автор

Good stuff, thanks Andrey :) Did you manage to make the db migrations work?

rafalk
Автор

great stuff ! what are you using on the browser to see responses ? is that a chrome extension ?

y.m.o
Автор

Video title is misleading. Cloudflare don't support bun runtime. Instead you should say bun package manger, hono and d1

CodeHomie
Автор

do you know it is at all possible to use clerk instead of using d1 ?

y.m.o
Автор

I'm getting this error where, when I try to hash a password using Bun.password.hash() and run development with bun run dev, i'm getting a referenceError Bun is not defined from cloudflare! Any suggestions? If I don't use Bun to try to hash a password everything works solid. I even tried to just console.log(Bun.version) and that gave me the same error. Any help is appreciated! :)

manuel
Автор

how do we add images into the db using hono

RakeshPaulraj-kvfh
Автор

d1 is great, but it doesn't support transactions

PeterZhou-viep