backpine labs
backpine labs
  • 4
  • 81 577
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
Переглядів: 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...

КОМЕНТАРІ

  • @LoneRanger.801
    @LoneRanger.801 7 хвилин тому

    Great video. Keep em coming

  • @epiphanyatnight8732
    @epiphanyatnight8732 14 хвилин тому

    This is the video that convinced me to move to Drizzle from Prisma. Please keep these videos coming.

  • @Clem.E
    @Clem.E 16 хвилин тому

    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 !

    • @backpine
      @backpine 7 хвилин тому

      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.

  • @TheKyodaija
    @TheKyodaija Годину тому

    Hey, what do you think of T4-stack?

    • @backpine
      @backpine 31 хвилина тому

      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!

  • @zethp
    @zethp 2 години тому

    I started using Drizzle a few months ago! Their docs are awesome. Good video keep it up!

  • @roviporter9158
    @roviporter9158 2 години тому

    Joe Jimbob!

  • @digibeacon8897
    @digibeacon8897 День тому

    Great video, thanks for the quick, no nonsense approach. Is there a way to codify/automate infrastructure on CloudFlare using something like Terraform?

  • @rahu1gg
    @rahu1gg 2 дні тому

    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

  • @Svenlaa
    @Svenlaa 6 днів тому

    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.

    • @backpine
      @backpine 3 дні тому

      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.

  • @ddubb3000
    @ddubb3000 10 днів тому

    Well done ! You gave an objective view!

  • @abmoallim
    @abmoallim 13 днів тому

    very very underrated YT Channel.

  • @vinhintw
    @vinhintw 14 днів тому

    I have a problem with the functions size being over 1MB.

    • @backpine
      @backpine 14 днів тому

      If you are hitting the 1MB limit you may have to upgrade to the $5 plan. On that plan there is a 10MB limit

  • @codelucky
    @codelucky 15 днів тому

    Can it replace (Coolify + Hetzner setup ) ?

    • @backpine
      @backpine 14 днів тому

      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

    • @codelucky
      @codelucky 14 днів тому

      @backpine Thanks, I got my answer. It's time to move to Cloudflare. ✌️

  • @domiibunn
    @domiibunn 16 днів тому

    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.

  • @zakir.nuriiev
    @zakir.nuriiev 16 днів тому

    Thank you for such a great content!

  • @mayankkumar-j2k
    @mayankkumar-j2k 17 днів тому

    make a long dedicated video for walkthrough and building of this project and deployement, please.

  • @whizzy_
    @whizzy_ 17 днів тому

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

  • @martindimitrov8547
    @martindimitrov8547 17 днів тому

    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

  • @lyleliao
    @lyleliao 18 днів тому

    🎉 awesome explanation

  • @agentbayabas
    @agentbayabas 18 днів тому

    Can you this using php?😅

  • @NaourassDerouichi
    @NaourassDerouichi 18 днів тому

    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!

  • @sivaramakrishnanr.7173
    @sivaramakrishnanr.7173 18 днів тому

    Bro enjoys vendor lock in 😂

  • @timeforrice
    @timeforrice 19 днів тому

    Great content! Would you create an extended tutorial including coding for this project in the near future?

  • @animeverse5912
    @animeverse5912 19 днів тому

    Or get a cheap netcup or hetzner instance and nuts

    • @0.amonymous
      @0.amonymous 10 днів тому

      Yeah why not just use a VPS wtf why do we need to pay extra for the same resources

    • @sad_man_no_talent
      @sad_man_no_talent 3 дні тому

      @@0.amonymous nah let's rag dog it with ec2/bare-metal

  • @wvrlow
    @wvrlow 20 днів тому

    cloudflare dns video length

  • @bagheldevansh
    @bagheldevansh 20 днів тому

    let's go, found another insanely good dev youtuber that'll go big in no time; don't forget us when you get there!

  • @Heheh01737
    @Heheh01737 20 днів тому

    Is the domain name part, it can't be, like does cloudflare offers a free domain name ??? Without subdomain nahhhh

    • @backpine
      @backpine 20 днів тому

      No, I don't think it's possible to get a free domain. But the managed SSL cert is free which is pretty cool.

    • @Heheh01737
      @Heheh01737 20 днів тому

      @ yeah it was a pretty dumb question but i was boombazald when u said no credit card till domain thingy ty.

    • @backpine
      @backpine 20 днів тому

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

  • @verainsardana
    @verainsardana 20 днів тому

    there is a severe vendor lockin with this

  • @christianjack1250
    @christianjack1250 20 днів тому

    How to print current URL in cloudflare workers

  • @punanislayer
    @punanislayer 21 день тому

    Lol you guys just reazile this but im using clodflare more than a year

    • @backpine
      @backpine 20 днів тому

      Nice! Whats your opinion on it after a year?

    • @punanislayer
      @punanislayer 17 днів тому

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

  • @haithem8906
    @haithem8906 21 день тому

    i deploy to github pages its free all the way :D will need my trusty pi to be choked as being the backend

  • @Sword_of_Rupture
    @Sword_of_Rupture 21 день тому

    But R2 requires a credit card to use

    • @backpine
      @backpine 21 день тому

      @@Sword_of_Rupture yeah I pinned a comment on this

  • @waguar
    @waguar 22 дні тому

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

  • @TienNguyen-qn6uo
    @TienNguyen-qn6uo 22 дні тому

    More videos plz🥺 like hosting website (hugo static site) in Cloudflare & some tips & trick

  • @juancruzmarques2106
    @juancruzmarques2106 22 дні тому

    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.

  • @BeauAD
    @BeauAD 22 дні тому

    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?

    • @backpine
      @backpine 22 дні тому

      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

    • @BeauAD
      @BeauAD 21 день тому

      ​@@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!

  • @lilnietzsch9012
    @lilnietzsch9012 22 дні тому

    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.

  • @Reelix
    @Reelix 22 дні тому

    Yet another person realizing that Vercel is overpriced user-friendly crap.

  • @DEREKOP
    @DEREKOP 22 дні тому

    Vercel also has some limitations with req body size limit.

  • @monireol
    @monireol 22 дні тому

    And this is why the video started looping. And I closed the video

  •  22 дні тому

    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.

  • @ajnart_
    @ajnart_ 22 дні тому

    I wonder if you are a CF employee, this is really good marketing

    • @backpine
      @backpine 22 дні тому

      I'm not s Cloudflare employee, I have just been impressed with Cloudflares dev platform and started sharing my learnings

  • @pmarkx84
    @pmarkx84 23 дні тому

    What about just learn aws it really not that hard...

    • @Y-JA
      @Y-JA 21 день тому

      Why? Cloudflare is cheaper

    • @santiagoblumenstrauss861
      @santiagoblumenstrauss861 6 днів тому

      Why would you need to learn exclusively AWS? Cloudflare is not a wrapper and is really cheap and good

  • @inkyinc2541
    @inkyinc2541 23 дні тому

    🫡

  • @screen4674
    @screen4674 23 дні тому

    Heroku when it was free tier was personal 😂😂

  • @noob-qk7mo
    @noob-qk7mo 23 дні тому

    bro is not pregnant, still delivered

  • @fus3n
    @fus3n 23 дні тому

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

  • @zoki5388
    @zoki5388 23 дні тому

    Yt recommended this video to me, great qualty I hope you will keep posting.

    • @backpine
      @backpine 23 дні тому

      Thank you! More to come

  • @arabeyabelajarnahwu-shorof5902

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

    • @backpine
      @backpine 23 дні тому

      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!

    • @arabeyabelajarnahwu-shorof5902
      @arabeyabelajarnahwu-shorof5902 23 дні тому

      @@backpine superb

  • @NN-xn2jb
    @NN-xn2jb 23 дні тому

    can I run a puppeteer instance with cloud fare ?