- 4
- 81 577
backpine labs
Приєднався 15 вер 2024
Modern software creation and experimentation
Streamlining Schema Management with Drizzle ORM & Cloudflare D1
In this video, we take a comprehensive look at how to effectively manage schemas using Drizzle Kit, a modern and powerful ORM tool.
We'll explore how to seamlessly interface with the Cloudflare D1 SQL Database, using patterns that are shared across all relational databases.
Drizzle Docs: orm.drizzle.team/docs/overview
Cloudflare D1 SQL Database: developers.cloudflare.com/d1/
#drizzle #cloudflare #sql
We'll explore how to seamlessly interface with the Cloudflare D1 SQL Database, using patterns that are shared across all relational databases.
Drizzle Docs: orm.drizzle.team/docs/overview
Cloudflare D1 SQL Database: developers.cloudflare.com/d1/
#drizzle #cloudflare #sql
Переглядів: 104
Відео
Deploy to Cloudflare Workers & Pages in 10 minutes - Complete overview with a Database & Domain
Переглядів 11 тис.21 день тому
A comprehensive guide on how to deploy to Cloudflare Workers & Pages. In this video we will deploy a starter Nextjs application & a hello world Hono backend service. We also connect a D1 database to both applications along with a custom domain name. Code in the video: github.com/backpine/cloudflare-example-deployments Docs: Nextjs on Pages - developers.cloudflare.com/pages/framework-guides/next...
I've been sleeping on Cloudflare's compute offerings - Free serverless hosting that scales
Переглядів 58 тис.Місяць тому
Cloudflare’s compute services exceeded my expectations. In this video, I explore their ecosystem of tools that make building full-stack web applications quick and cost-effective, often free. Join me as I break down the key services @cloudflare offers and how they can help you build and scale your next project efficiently. Cloudflare Docs: Workers - developers.cloudflare.com/workers/ Worker Page...
Great video. Keep em coming
Thank you!
This is the video that convinced me to move to Drizzle from Prisma. Please keep these videos coming.
Awesome thanks! I started using Cloudflare for my nextJS projects after your previous video. The 1 MiB worker size limit is a bit tricky to deal with and I was wondering if I should split my app. But then the codebase first approach would become an issue regarding schema sharing. That’s great you showed us how to deal with database first approach !
I overlooked the 1MiB limit in my video about deployments. The easiest way to avoid the 1MiB limit is to upgrade to the $5 worker plan. The $5 plan has a 10MiB limit which I have never hit. I wish Cloudflare would allow for 5MiB worker size on the free tier so people could get Next.js working with no issues.
Hey, what do you think of T4-stack?
T4-stack is pretty cool. It uses a lot of my go-tos like - Hono, D1, and Workers. That said, I prefer SvelteKit over Next. I'm also opinionated on my project structure so I don't really reach for packaged stacks like T3 and T4. But I would never discourage someone from using T4!
I started using Drizzle a few months ago! Their docs are awesome. Good video keep it up!
Joe Jimbob!
Great video, thanks for the quick, no nonsense approach. Is there a way to codify/automate infrastructure on CloudFlare using something like Terraform?
Cloudflare can be able to deploy next js but not in a performant way like vercel. That's why opennext is trying to solve this
i have a few toy projects on cloudflare. a static site and an api layer with db access. notes on this video - you need to get a domain name, you might have to pull out your credit card for this - the framing of this video makes it seem you have unlimited use. the only mention of usage based billing was R2. felt slightly misleading. - i think cloudflare pricing is very attractive because they're so unknown. as they grow, they will likely raise prices. they're a publicly listed company after all.
Thanks for the feedback. I pinned a comment about R2. I thought the domain purchase was obvious, but I have seen a few comments from people asking about that. In terms of the domain, I was referring to the free SSL cert. Many providers charge yearly for SSL.
Well done ! You gave an objective view!
very very underrated YT Channel.
I have a problem with the functions size being over 1MB.
If you are hitting the 1MB limit you may have to upgrade to the $5 plan. On that plan there is a 10MB limit
Can it replace (Coolify + Hetzner setup ) ?
That's very dependent on your tech stack. I'm a big fan of Coolify for shipping code to VPSs. I would typically use Coolify and a series of VPSs when deploying GO and JVM based projects. For TS/JS based projects that can run on serverless compute I prefer Cloudflare. So if you are using Full-stack frameworks like Next, SvelteKit, Angular, etc Cloudflare could likely replace Coolify + Hetzner. But if your backend is not in TS/JS then I'd stick with a VPS
@backpine Thanks, I got my answer. It's time to move to Cloudflare. ✌️
You've built an app. CF slaps you with a bill and asks you to join their Enterprise plan and you're so vendor locked-in that you can't do anything but pay cloudflare more than your app is making.
Thank you for such a great content!
make a long dedicated video for walkthrough and building of this project and deployement, please.
I've been using various cloudflare services for a few years now and I'm baffled on how good their services are and how bad, or just non-existent, their marketing is at the same time. Every single time I propose their services as an alternative to the usual azure/gcp/aws stack when working for a project that's migrating from onprem to cloud or just trying to expand company's cloud infra I get the 'cloudflare can do that?'
Cloudfront seems great! Would be nice if you shared your exploration on DO, GCP, etc. Just so viewers can compare themself. Especially given that you can't write non-ts code like golang, etc
🎉 awesome explanation
Can you this using php?😅
Cloudflare should just cancel its whole marketing department and replace it with your priceless videos. Also, take a look at SST, the product is as cool as Cloudflare ones but it's not getting the popularity it deserves. And please keep up with the unique, original, high-quality content!
Bro enjoys vendor lock in 😂
Great content! Would you create an extended tutorial including coding for this project in the near future?
Or get a cheap netcup or hetzner instance and nuts
Yeah why not just use a VPS wtf why do we need to pay extra for the same resources
@@0.amonymous nah let's rag dog it with ec2/bare-metal
cloudflare dns video length
let's go, found another insanely good dev youtuber that'll go big in no time; don't forget us when you get there!
Is the domain name part, it can't be, like does cloudflare offers a free domain name ??? Without subdomain nahhhh
No, I don't think it's possible to get a free domain. But the managed SSL cert is free which is pretty cool.
@ yeah it was a pretty dumb question but i was boombazald when u said no credit card till domain thingy ty.
@@Heheh01737 not a dumb question at all, a few people asked this due to the way I framed the video. My intention was to illustrate all the compute offerings you get for free. Some services will provide free hosting but once you want your own domain name you have to pay for the compute as well. I should have been more explicit about that
there is a severe vendor lockin with this
How to print current URL in cloudflare workers
Lol you guys just reazile this but im using clodflare more than a year
Nice! Whats your opinion on it after a year?
@@backpine Imma be Honest With You. Its Preety Good and still i havent paid any single penny other than domain purchase and load balancers. i use r2 and cloudflare tunnels and sometime workers for auth - Average 21millions request per day, 288k daily visitors, 400TB to 600TB Daily Data Transffer which is 90% of the time served by cloudflare free cdn. Origin server from home (Actually i have 5 PC and 1 old thinkpad ) average 10gbps total transffer rate from 6 different isp (at starting when i was testing it its peak upto 28gbps) now everybody use internet in my company its drop to average 10gbps. Total cost if you dont include isp - around 15dollar to 20 dollar per month, sometimes only 5 dollar per month.
i deploy to github pages its free all the way :D will need my trusty pi to be choked as being the backend
But R2 requires a credit card to use
@@Sword_of_Rupture yeah I pinned a comment on this
You use cloudflare until you become successful enough that they extort you and pull the rug out demanding millions of dollars or they kill your app...
More videos plz🥺 like hosting website (hugo static site) in Cloudflare & some tips & trick
Everything is sunshine and roses until you met their "security and compliance team" aka the sales team. Fortunately if you made it that far you would probably have a successful project. Go see what happened to a startup, theprimeagen has a video reviewing a post about it.
I'm still learning about cloudflare, wouldn't it make sense to utilise their workflow product to persist state for the api route between the function calls in the process-transcript endpoint where you added the queue?
You are absolutely right! Workflows came out a week after releasing this video. They are still in beta, but they unlock a bunch of options when building more complex services
@@backpine Yes indeed. Hope you keep producing HQ cloudflare related videos, there's a big asymmetry in their product offerings and usage case studies. They should be paying you for dev rel!
Our backends and db is already on AWS. But amplify is really bad, so i was hesitating to go out of vercel. Need to check out CF.
Yet another person realizing that Vercel is overpriced user-friendly crap.
Vercel also has some limitations with req body size limit.
5Mb
And this is why the video started looping. And I closed the video
As a business decision, do not create a scenario where your whole company is depending on the services offered by one provider and their current pricing for said service.
I wonder if you are a CF employee, this is really good marketing
I'm not s Cloudflare employee, I have just been impressed with Cloudflares dev platform and started sharing my learnings
What about just learn aws it really not that hard...
Why? Cloudflare is cheaper
Why would you need to learn exclusively AWS? Cloudflare is not a wrapper and is really cheap and good
🫡
Heroku when it was free tier was personal 😂😂
😂
bro is not pregnant, still delivered
😂
Wow i wonder what his recommendation on cheaper and faster alternatives to vercel will be after his only 2 videos being abouf cloudflare being better than everything else....
Yt recommended this video to me, great qualty I hope you will keep posting.
Thank you! More to come
You're using next js static export for cloudflare pages right? If so, how can you communicate to database right from front end without any backend since the static export doesn't support server action nor api route?. This video should be great if you explain how this works.🎉
In this video I was using nextjs ssr, so it had components which ran server side (which connected to the database). I should have explicitly mentioned it was ssr though. The link to the code is in the description, so you can check it out!
@@backpine superb
can I run a puppeteer instance with cloud fare ?