跳到正文
TikTok · 搜「ai tools」· Professor Glitch·· 9 天前精选AI 评分71

作者用 Claude Code 零代码搭建月费 9 美元的 QR 菜单 SaaS

How to build a real SaaS with AI, from zero How to build a real SaaS with AI, from zero: a website that sells it, logins, a database, monthly payments and photos, all built by talking to Claude Code. I never wrote a line of code. The example: MenuTap, a $9/month QR menu app for cafés. 1. The tool: Claude Code inside VS Code (the extension), a paid Claude plan, an empty folder. 2. The plan: "Interview me about it, then write the CLAUDE.md." Tell it you've never coded and it picks the tools for you. 3. The website: home, pricing and sign-up. The first draft looked like every AI site, so: the free frontend-design plugin + "make it look premium" + 6 AI photos. 4. The database: Supabase, running on your own computer first. Publishable key in the browser, secret key only on the server. 5. The rule: anyone can read a published menu, only the owner can edit it. Put it in the database, then make the AI prove it with a second owner. It tried 24 ways. All failed. 6. Customer side: the public menu

AI 导读

作者称自己没写一行代码,全程通过对话让 VS Code 中的 Claude Code 搭出面向咖啡馆的 QR 菜单 SaaS MenuTap,包含官网、登录、Supabase 数据库、Stripe 每月 9 美元订阅和菜品照片。

打开原文tiktok.com
选题角度

作者用 Claude Code 从零搭出带登录、数据库和 Stripe 订阅的 SaaS,可拆解数据库权限规则如何让 AI 自证 24 种越权尝试全部失败。

博主
Professor Glitch@pro.glitch

粉丝 12万

互动数据
浏览
2.3万
点赞
1292
评论
20
分享
408
收藏
1538

数字来自平台,为最近一次抓取时的数据。

正文 · 原文

以下是视频口播的自动转写,可能有错字。

Here's how to build a real saas with ai from zero, a website that sells it logins, a database, monthly payments and photos, all built by talking.

I never wrote a line of code and i'll show you exactly where most ai built apps fall apart. So yours doesn't. We're building menu tab, a cafe owner pays nine dollars a month, types in her menu and prints one qr code for her tables.

Customers scan it and see the menu on their phone and when she changes a price, every phone updates in under a second. That's a saas many customers one app.

Each one paying every month. I use Claude Code inside vs code. You install the Claude Code extension, sign in with a paid cloud plan and open an empty folder.

That's the whole setup. Step one before any code you type. I want to build an app called menu. Tap interview me about it.

Then write the clog. md. It asks you questions, who pays what the owner does, what the customer sees. You answer like a normal person, and here's the part beginners love.

I told it I've never coded, and it picked the tools for me, and explained each one in plain English. Next, JS for the website, Supabase for the database and logins, Stripe for payments, Vercel to put it online.

Then it wrote everything into one file, clog. md. It reads that file every single time it works, so you never explain your app twice.

Step two, build me the home page, the pricing page, and the sign-up page. And here's what came back. It works, and it looks like every AI website you've ever seen.

Beige, no photos, nothing moving. So, two things. First, install Anthropic's front-end design plugin. It's free, and it makes Claude design like a studio instead of a template.

Then you say it straight. This looks like every AI-made website. Make it look premium. I want real-looking cafe photos made with AI.

I gave it a key for Nanobanana, an image model, and it made six photos, a few cents each. Plus a 3d phone that turns as you scroll, and better fonts.

Same app, completely different product. Step three, the database. That's superbase. Somewhere to keep every cafe, every menu, every price, and every login.

You can run it on your own computer first, it's open source. So i said, set up superbase with email login, and run it on my computer for now.

It set it all up, made a test owner, and the confirmation email landed in a test inbox. Two keys matter here. The publishable key is safe in the browser.

The secret key skips every rule you set, so it only ever lives on the server, and never goes anywhere public. Step four, the menu editor.

Sections, items, prices, and the nine major allergens. And one rule, anyone can read a published menu, only the owner can edit it.

Put that rule in the database itself, then prove it. Make a second cafe owner, log in as her, and try to edit the first cafe's menu.

It has to fail. It tried 24 different ways, change the latte price, delete items, sneak its own item into her menu. Every single one failed.

Why so strict? In october, a security firm found more than 16,000 superbase databases with tables anyone could read, and they point at tables made by ai coding tools.

So, never assume your ai turn the rule on. Make it prove it. Step five, the customer side. The menu page customers see when they scan, and a qr code she can print.

One smart detail it added by itself. The qr code holds a permanent link, so when she changes her menu link later, the printed codes on her tables still work, and it scanned its own printed codes to check.

Step six, payments. That's stripe. In your stripe account, you open a sandbox. That's a fake money copy of stripe. Developers api keys, two keys, the one that starts with pk test is safe in the browser.

The one that starts with sk test stays on the server. You paste both into your . env. local file yourself because a secret key never goes into a chat.

Then you tell claude create the product in my sandbox, nine dollars a month, add a subscribe button that opens stripes checkout and when she pays a webhook unlocks her account.

Here's the part people get wrong. The thank you page can't be what unlocks her account. If her internet drops right after paying, she never sees it.

Stripe sends your app a message the moment the payment goes through. That's a webhook. On your computer, the stripe cli forwards those messages to your app.

Claude set that up too. Then test it. 4242, 4242, 4242, 4242. Any future date, any three digits. The account unlocked a third of a second after she came back.

Then the decline card. Your card was declined, account stays locked. It also sent fake she paid messages, and the app refused them because each real one carries stripe's signature.

And with stripe's customer portal, she updates her card or cancels by herself. If she stops paying, her menu hides on its own.

Step 7, photos. Each item gets a photo, stored in supabase too. Same rule, only the owner can add, change or delete her photos.

Photos get shrunk on her phone before upload, so the menu stays fast on cafe wifi. Step 8, before launch. Review the whole code for security, like a team of security.

Security experts would fix anything real. It sent four reviewers at it, the database rules, the logins, the payments, and the public pages.

Nothing critical. But 13 smaller real problems. Paying in two browser tabs could charge her twice, and anyone could sign up and use your photo storage as free file hosting.

It fixed 11. Tested every fix, and put the rest on a launch checklist. Step nine. Put it online. Tell Claude, "Put this project on my GitHub private.

" You click "Authorize once," then Vercel. Sign in with GitHub, pick the project, paste your keys into its environment variables, deploy.

One thing almost nobody tells you: Vercel's free plan is for non-commercial use, and their rules say taking payments counts.

So a paid app goes on Pro, $20 a month. Then make the online Supabase project and add your domain. A . com is about $12 a year.

And set the domain before any cafe prints a QR code, because the code carries your address. Now the three things that break the day you go live: 1.

Login emails. Supabase's built-in email only reaches your own team, a couple an hour. Your first customer never gets her link.

Connect a free email service like resend instead. Two, the address. Superbase starts out sending every login link to local host.

Your own computer, set it to your real domain. 3, real money. Sandbox keys don't take real cards. Going live means live keys, and a brand new web hook with a brand new secret.

Skip that, and people pay you, and nothing unlocks. The honest bill, claude pro, twenty a month, versal pro, twenty, superbase pro, twenty five, because a free project pauses when it goes quiet.

The domain about a dollar a month. That's about sixty six dollars. Stripe takes a bit over three and a half percent plus thirty cents per payment.

At nine dollars a cafe, about eight cafes cover the whole bill. That's a real sas, a website, logins, a database with a rule it can prove, payments, photos, built by talking.

If you want to build apps like this from complete beginner, i have a full vibe coding course inside my community, plus seven more that take you from zero to building real systems with ai.

If you're interested, the link is in my profile.

来源:TikTok · 搜「ai tools」 · tiktok.com