A Postgres database for every GitHub branch 🤝 GitHub branching strategy best practices
HTML-код
- Опубликовано: 5 авг 2024
- LW🆇 Day 2- Supabase Branching: supabase.com/blog/supabase-br...
Collaborative application development is super easy with tools like Git. In this video, Jon Meyers demonstrates how to use Database Branching to accomplish a similar workflow - creating an isolated PostgreSQL database for every branch in GitHub!
More Launch Week 🆇: supabase.com/launch-week?utm_...
So you want to do Database Branching using Supabase? Jon’s got you covered. In this Supabase & Postgres tutorial, Jon shows you how developers like you can manage separate database instances for each feature branch of your application, mirroring your GitHub branches and making your life as a dev MUCH easier!
What You'll Learn:
✅ Creating Separate Database Instances: Jon will show you exactly how to set up individual Supabase instances for each GitHub branch, reflecting the separation of production and feature development environments.
✅ Database Migration Management: Learn to manage database structure changes through migration files that can be tracked and committed within your GitHub repository alongside your application code.
✅ Tips & Tricks for MUCH Easier Deployment Integration: Jon will show you some hacks for automating the process of deploying database changes and integrating them into production, utilizing GitHub actions for continuous deployment. This is essential GitHub branching strategy best practices you should follow!
✅ Local and Preview Environment Testing: Obviously, you’ll need to test! Learn how to test new database functionalities in isolated environments before merging them into the main branch, ensuring robust, error-free app releases and roll-outs. Again, a perfect GitHub branching strategy for multiple environments you should watch!
Why You Should Care About This Postgres Database for Every GitHub Branch Video:
Database branching simplifies managing database versions across different stages of development, ensuring each feature has an isolated environment. By doing this, you’re reducing conflicts and keeping your application and database schema perfectly aligned without disrupting the main production environment.
You’ll also learn:
✅ Setting up a new feature using Supabase’s branching capabilities.
✅ Adding and managing new database columns through Supabase Studio.
✅ Automating deployments and database migrations with GitHub actions.
✅ GitHub branching strategy best practices
This is your guide to making the most of database branching to ensure consistent, error-free deployments. Perfect for developers using Supabase and GitHub! We hope this video helped some dev’s out there!
💻 Videos to watch next:
▶ Watch all Postgres Supabase videos: • Learn Postgres
▶ Postgres...but JSON? • How to store and query...
▶ This is why you MUST be using Postgres functions and transactions: • 3 reasons you should u...
👇 Learn more about Supabase 👇
🕸 Website: supabase.com/
🏁 Get started: app.supabase.com/
📄 Docs: supabase.com/docs
🔔 Subscribe for more tutorials and feature updates from Supabase: / @supabase
📱 Connect with Us:
🐙 Github: www.github.com/supabase
💬 Discord: www.discord.supabase.com/
🐦 Twitter: / supabase
▶ Instagram (follow for memes): / supabasecom
ABOUT SUPABASE:
Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.
Build in a weekend, scale to millions.
#Supabase #AppDevelopment #RealtimeApps #DeveloperTools Наука
Keep up with everything we are launching here: supabase.com/launch-week?
Awesome! I was really looking forward to this one. :)
Yeah, I am so excited! It also unlocks some pretty amazing things for the future! of Supabase! 🚀
The GitHub for Postgres, amazing work! 💪
This is what everyone has been waiting for!
this is awesome... game changer ..thanks for the demo.
Absolute game changer! Glad you enjoyed it! 🙌
I'd love to see this kind of integration with Cloudflare Pages 😲
That would be awesome! 💯
Branches can still be created manually. The Vercel integration just automates the process! 🚀
Supabase!
This is only the beginning! 🚀
🫡
wow
I know, right?
This is cool. What happens if there is a migration error?
You should have mentioned that Database Branching is only available on the Pro Plan :)
Holy S***! Awesome. Thank you.
this is awesome 🚀
exactly what I was looking for.
Let's branch it out!
Good but who creates features right from the PRODUCTION branch? Can you show us normal workflow like DEV, QA, PROD?
Would be really helpful if you did a tutorial on how to build a Dashboard and Customer management portal similar to what you see in Supabase.
so cool 🤯🤯🤯
This is great! Does this feature also covers changes to Edge Functions, or only to the Database?
Great. I wonder how it can work with mobile apps especially Flutter.
can't wait to spin up 100000000x branches
Is it posibble to use this without running supabase locally? So i dident have to make migrations.
Vercel creates preview links for commits, branches, PRs... Will all these work ? What if there are no new migrations, will it create a branch anyway, or connect to the main one ? Does the branch live as long as the Vercel preview ?
It’s a cool feature. But I don’t want to use Vercel personally. And work uses AWS.
Nice! How are you using AWS today?
Branches can be created manually - the Vercel integration just automates the process! 👍
How do I make a .supabase folder? Is it like all my supabase configurations I looked online but couldn't find anything. Great video, by the way!
Have you been using the CLI to make migrations already?
if so, you probably already ran `supabase init` which means you already have a ./supabase directory in your repo. Branching will use the same directory and the same migration files. Also your seed.sql file will work as well.
so it is same thing that Prisma was offering in their migrations?
How about Supabase Functions? Could I set up a new endpoint, perhaps a postgres trigger, and have it deployed in a preview env?
Yup, as long as you include the function definition in the migration file, it will be available in the preview branch!
@@Supabase Hmm okay. Will that newly added edge function (or any changes to existing functions) also modify my production environment, or are function changes local to that preview environment? If so, how does supabase resolve endpoints in different preview environments?
when do you expect this to come out of alpha? there's currently a warning in your docs not to use this for production systems...
It would be great if you slow down a little bit....