- 0:00
I am so excited to share this with you today. So, I love vibe coding. You probably already know that about me. But one thing that I don’t love about vibe coding is off payments and databases. Now, Memberstack has been able to make the off and payment side easy for me. But there was no databases and that all changes now with Memberstack data tables. I am so excited to show this to you. So, let’s get right into it. First things first, I just set up here a simple kind of using shad CN page. This is going to be like a Twitter light,
- 0:31
let’s say, for for demo purposes. We have a signup page, a login page, and we have this like Twitter feed looking thing. But this isn’t connected to anything. There’s no Memberstack, there’s no databases, there’s no anything. Right now, we are going to set all of that up super quickly with Memberstack. So, first things first, I have a Memberstack app over here. I have cloned the nextjs boilerplate from versel in order to make this work and I am using claw code. Along with that we have the Memberstack AI documentation.
- 1:03
The link to all of these things that I’m saying are in the description. And this is how AI is going to understand how to work with Memberstack. So that’s what I have set up right now. And we have more in-depth videos coming soon that are going to show you really the entire process. But in this case I want to show you data tables and how awesome they are. So let’s go ahead over here and we can see that this is set up. I’m going to say can you install the Memberstack DOM package at latest just so we get you know the most recent update. Here are my
- 1:36
credentials. Then can you make O work? So, OTH is such a pain with vibe coding and like quite literally all you need to do is give it context and Memberstack and say like make O work like the most caveman prompt ever and you’re you’re good to go. So, let’s go to dev tools over here and get the app ID and the public key so that it knows what to do. And then I am going to put it in plan mode so that it can figure out what it is going to do. All righty. So, it’s
- 2:07
made its plan and everything looks good to me. I am going to say yes and auto accept edits. So, this should get our authentication working so that these beautiful login and signup pages actually work. And again, that is usually such a pain to do with Vibe coding. So, this should just be able to oneshot it or hopefully with minimal errors. All right, so one prompt and we are good to go apparently. Let’s go ahead and test it out. So, I’m going to click get started up here, and then I’m going to just enter some stuff. So, it
- 2:39
does say we have two issues. I’m not sure if that is going to cause us problems, but we’ll find out. I agree. Okay, so there we go. We are now here. Let’s go ahead and check out our Memberstack dashboard. And just like that, we have O working already. So, I’m going to go and quickly figure out what these two errors are and fix them. Shouldn’t take me too long. All right, there we go. So I just copy and pasted the errors and we are having no more errors. So this is working off is good as we can see Julian up here. All that is good. I can log out. I can make
- 3:10
a new account. I can do whatever I want to do. So now let’s actually go ahead and get the data tables working. So I’m going to head back over here into Memberstack. And if you can’t see data tables in your lefth hand sidebar, just go to the end of your URL like this and type in beta data tables. And it will take you to the new data tables feature. Just like that. And as you can see, we have absolutely nothing set up. And I’m just going to keep this simple and just have like a post wall with nothing else. We’re not even going to link it to the
- 3:40
members for now for the sake of simplicity. Yes, data table’s fine. Okay. And we’re going to call this posts. Here is a really big thing. So if you’ve used Superbase or anything like that with Vive coding, role level security is not easy if you don’t know what you’re doing. And I for one don’t know what I’m doing. So this is why Memberstack makes me so happy because all I need to do is say any member can create one. I could also make it public or only the admin. I want to say anyone can read it or any member. Let’s make it any member. Update rule. Members can update their own and members can delete
- 4:10
their own. That is how I want and that is all I need to configure. It is now easy and secure. So I’m going to click create table and then I’m going to open the table. And I don’t even need to configure which member created it or an ID because that just happens automatically with every single record. The only thing I’m going to want to do here is click add a field and call it content. And we’re going to keep it text. So we have text, filterable, unique. So this is good for things like usernames and stuff like that. We have numbers, decimals, booleans, dates, references, emails, and URLs. Again, I
- 4:43
only need text. Yes, it does need to be required. Add. There we go. Now we have text. And along with that, let’s say we have other tables. So I actually built a Twitter clone with far more features than this. And it has things like likes, reposts, and so you can link things throughout your database just like you could with any relational database. So I have posts table with the content field. I’m going to go ahead and say now I’ve created the posts data table in Memberstack and it has the content text field.
- 5:19
Can we make the posting and the displaying of posts work with Memberstack data tables? Let’s do that. And let’s set it to plan mode. All right. So it has made this plan here. Memberstack post integration plan. Create a post service. Update post creation form, replace mock posts, real-time features, enhance features. Beautiful. All right, that all sounds good to me. Let’s say yes and accept edits, and then let’s just go over here, sit back, and let it do its thing. All
- 5:51
right, so it has said that it set it up. Let’s go ahead and try it out. I’m just going to make a post right here, and say hello world post. Look at that. It seems to be working. I’m going to go ahead and refresh. Loading. We see hello world. We can also see that it is like super super fast. Now I’m going to go over here into my data tables and refresh. And just like that, we can see hello world which was created by Julian on this date. Let’s go ahead and try one more. How’s it going? And refreshing again.
- 6:24
Just like that, we have our off and database set up in literally just a few minutes. Now we can go ahead and add new fields, new tables, new relationships to make well anything that you want to make. At the end of the day, this is a relational database. All we’ve done is made it easy for you to understand so that you can vibe code something and launch it with confidence. There are going to be a lot of videos coming up showing how you can use AI to launch successful web apps. I hope you like this one and I’ll see you in the next
- 6:55
video.