一种氛围编码的实验

For the holidays, I gave myself a little experiment: build a small web app for my wife to manage her travel itineraries. I challenged myself to avoid editing the code myself and just do it “vibe” style, to see how far I could get.

在假期期间,我给自己一个小实验:为我的妻子构建一个小型 web 应用来管理她的旅行行程。我挑战自己避免自己编辑代码,只用“氛围”风格来看看我能走多远。

In the end, the app was built with a $20 Claude “pro” plan and maybe ~5 hours of actual hands-on-keyboard work. Plus my wife is happy with the result, so I guess it was a success.

最终,这个应用程序是用 $20 的 Claude “专业” 计划构建的,实际动手操作的时间大约是 5 小时。而且我妻子对结果很满意,所以我想这算是成功。

Screenshot of a travel itinerary app with a basic UI that looks like a lot of other CRUD apps, with a list of itinerary agenda items, dates and costs, etc.

There are still a lot of flaws with this approach, though, so I thought I’d gather my experiences in this post.

不过,这种方法仍然存在很多缺陷,所以我想在这篇文章中总结一下我的经验。

The good

好的地方

The app works. It looks okay on desktop and mobile, it works as a PWA, it saves her itineraries to a small PocketBase server running on Railway for $1 a month, and I can easily back up the database whenever I feel like it. User accounts can only be created by an admin user, which I manage with the PocketBase UI.

这个应用程序可以正常工作。在桌面和移动设备上看起来还不错,它作为一个 PWA 工作,将她的行程保存到一个每月 $1 的小 PocketBase 服务器上,并且我可以随时轻松备份数据库。用户账户只能由管理员用户创建,我通过 PocketBase UI 管理这些账户。

I first started with Bolt.new but quickly switched to Claude Code. I found that Bolt was fine for the first iteration but quickly fell off after that. Every time I asked it to fix something and it failed (slowly), I thought “Claude Code could do this better.” Luckily you can just export from Bolt whenever you feel like it, so that’s what we did.

我最初从 Bolt.new 开始,但很快切换到 Claude Code。我发现 Bolt 在第一次迭代时还不错,但之后很快就不行了。每次我让它修复某些东西而它失败(缓慢)时,我都在想“Claude Code 可以做得更好。”幸运的是,你可以随时从 Bolt 导出,所以我们就是这么做的。

Bolt set up a pretty basic SPA scaffolding with Vite and React, which was fine, although I didn’t like its choice of Supabase, so I had Claude replace it with PocketBase. Claude was very helpful here with the ideation – I asked for some options on a good self-hosted database and went with PocketBase because it’s open-source and has the admin/auth stuff built-in. Plus it runs on SQLi...

开通本站会员,查看完整译文。

首页 - Wiki
Copyright © 2011-2025 iteam. Current version is 2.148.2. UTC+08:00, 2025-12-30 05:46
浙ICP备14020137号-1 $访客地图$