Vibe 编程:从原型到生产
把你在基础课程中建造的项目变成一个真实的产品,让陌生人也能信任。为不懂技术但通过提示 AI 来构建的创始人编写。你将添加真实的注册和登录、适当的数据层、对常见攻击的防护、测试、部署到一个实时地址、监控,以及一个扩展和维护的计划。到最后,你从一个原型开始,上线一个生产就绪的产品,而这些都不需要你自己写代码。
共 12 节,按顺序
- 120 分钟
Preparing Your Product
欢迎来到第二门课。在基础课里,你做出了一个能跑的东西,而且全程都是靠给 AI 提要求做出来的。这一课不会给它加任何一个功能。相反,你要像一个陌生人那样重新审视这个项目,找出它在真实使用下会撑不住的地方,然后写下一份修补计划。这里没有工作区,也没有代码。这是一节做规划的课,而诚实的规划正是一个演示和一...
The difference between works on my screen and ready for real usersWhat production readiness meansThe release checklist of things that must be true before shippingFinding the weak points where a prototype breaks under real usePlanning the smallest safe first release - 230 分钟
Building a Strong Foundation
上一课你老老实实地审视了自己在基础课程里做出来的项目,并把它在真实使用下会崩在哪里写了下来。这一课要修的是那张清单上的头一个弱点:一个只会在一个地方、也就是你自己屏幕上运行的原型,所有东西糊成一堆。你要给项目理出一个干净的结构,把它的设置挪到可预期而且安全的地方去。这些全都靠给人工智能写提示词完成,...
Organizing a project into a clear folder structureGathering settings into one configuration placeWhat an environment variable is and why it existsKeeping secrets out of code and out of version historyDevelopment, staging, and production as three places for the same code - 330 分钟
Managing Users and Authentication
你在基础课里做出来的那个项目能跑,但它把所有人都当成同一个人。没有账户,没法登录,也没有"这是我的东西、那是你的东西"这回事。这一课要迈的就是这一步。你会让真实的人注册账户、安全地登录,而这一切都靠在这个工作区里给人工智能写提示词完成。你一行代码都不用写。
Sign up and login so real people can make accounts and returnAuthentication as proving who someone isAuthorization as deciding what a signed-in person may doUser roles and permissions like admin versus normal userSession management so the product remembers you are logged inPassword recovery with a forgot password flow+1 - 430 分钟
Working with Data
上一课,你给基础课程里做的那个项目加上了账户和登录,让它知道用户是谁。现在要给它一个真正存放信息的地方:别人下的订单、写的笔记、选的设置。眼下这些信息多半在应用程序一重启就没了。这一课就要解决这个问题,让你的数据在重启之后依然还在,而且随着量变大也不会散架。跟以往一样,你不用写任何代码。你只负责描述...
Choosing a database without overthinkingData models: what you store and what fields each thing hasRelationships: how records connectValidation: rules that keep bad data outBackups: keeping copies so data is never lostData migration: safely changing the shape of stored data - 530 分钟
Keeping Your Product Secure
前面几课里,你给基础课做的那个项目加上了真正的账户、登录,以及一个可靠的信息存放处。一个产品一旦装着别人的信息,网上的陌生人就会开始来捅它。这一课不是要吓唬你。它是一份很短的清单,列着每个产品都需要锁上的那几扇门,而你锁门的方式,跟你现在造任何东西的方式一样:给 AI...
Common security risks: the handful that hit most productsAPI security: protecting the endpoints other software callsInput validation: never trust what a user sends, check and clean itSecrets management: keys and passwords in environment variables, never in codeFile upload security: limit type and size, never trust the filenameRate limiting: capping how often someone can hit your product - 630 分钟
Testing Before Release
这门课程走到这里,你已经给基础课程里做出来的项目加上了真正的注册和登录、一层像样的数据层,还有针对常见攻击的防护。这些改动每一个都动了产品,而任何改动都可能悄无声息地弄坏原本好好的东西。这一课要解决的,就是让你确信它没坏,这样发布的时候不用提心吊胆。你不用写任何测试代码。你只需让人工智能写好并运行这...
Manual testing against a checklistAI-generated automatic testsEdge cases that break thingsRegression testing to stop old bugs returningA release checklist as the final gate - 720 分钟
Working with Multiple AI Agents
到目前为止,你给基础课里做的那个项目加上了真实的账户、数据层、安全防护和测试,而这些全是靠给一个人工智能写提示词、让它把事都办了。这样能行,但它对单条提示词的要求太高了:规划、决策、开发、测试、加固,全都挤在一起。这一课没有代码。它讲的是一种更从容的工作方式:把整件事拆给几个各有专注的人工智能角色,...
An AI agent is the same AI given one focused role, not a different toolSplitting production work across focused roles instead of one promptThe seven roles: planning, architect, developer, QA, security, DevOps, documentationWhat to ask each role and what good output looks likeThe founder directs all the roles and makes the decisions - 830 分钟
Deploying to Production
到目前为止,你的产品只活在你自己的屏幕上。它在这个工作区里跑着,你点来点去,一切正常。这当然是真实的,但只有你一个人能访问到。这一课要准备好那些部件,让世界上任何人都能通过一个真正的网址打开你的产品。今天还不会正式上线。你要做的是通过提示 AI...
Deployment: putting your product on a server so the public can reach itHosting: the service whose computers run your productDomains: your product's human-friendly web addressSSL: the lock icon and encryption that makes the connection privateEnvironment variables: production values set on the hostCI/CD basics: an automatic pipeline that tests and ships your changes - 925 分钟
Monitoring Your Product
你的产品现在上线了。真人能访问到它,这也意味着在你没盯着的时候,真的会出真事。得知自己产品坏了的最糟糕的方式,就是事情发生几个小时之后,一个陌生人发邮件来告诉你。这一课讲的是反过来的做法:给你的产品搭好一些渠道,让它主动告诉你它在干什么,好让你比用户更早发现麻烦。下面每一个听着吓人的词,都会先给出一...
Logs are a running diary the product writes about what it didError tracking catches and records errors automaticallyPerformance monitoring watches response time and load so slowness is caught earlyUser analytics understands what users do in aggregate and respectfullyA health check is a tiny endpoint the host pings to confirm the product is aliveAlerts notify you the moment something breaks - 1020 分钟
Scaling Your Product
你的产品已经部署在一个真实地址上,而且靠着上一课,出了问题你能知道。现在开始有人用它了,于是一个新的担心冒了出来:要是很多人同时来用,会怎么样?这一课讲的是扩容,说白了就是让你的产品在用量变大时既不变慢也不倒下。这一课没有工作区,也没有代码。你要学到的最重要的东西不是怎么扩容,而是什么时候扩容,因为...
Performance optimization: making the product feel fastCaching: storing results so you do not redo expensive workBackground jobs: doing slow work out of the user's wayAPIs: letting other software talk to yoursFile storage: handling uploads at scaleScaling strategies: scale in response to real signals, not fear+1 - 1120 分钟
Maintaining and Improving Your Product
你的产品上线了。真实的人能访问它、注册、使用它。这是个里程碑,同时也是一份新工作的开始。上了线的产品不是完工了,而是活起来了:野外会出各种故障,它周围的世界会变,用户也会用行动告诉你他们真正想要什么。这一课要给你的,是一套从容、可重复的节奏,用来让你在基础课里做出来的那个产品保持健康,并随着时间越做...
A shipped product is alive and needs ongoing careThe repeatable weekly maintenance loopTriaging and fixing bugs found in the wildKeeping dependencies current and safe with updatesShipping feature releases without breaking what workedTelling signal from noise in user feedback+2 - 1245 分钟
Running a Real Product
这是本门课程的最后一课,也是把前面所有东西汇到一起的一课。在过去十一课里,你给基础课程中做的那个项目加上了真实的账户、数据层、安全、测试、部署和监控。这里已经没有什么新的、吓人的东西要学了。这一课讲的是从“我做出了一个产品”到“我在运营一个产品”的转变,然后就把整个开发过程交回你手上。今天你大部分时...
The shift from building a product to running a productProduct operations as a steady day-to-day rhythmDocumentation so you and others can rely on the productRelease management for safe, predictable, reversible releasesTeam collaboration without overwriting each other's workLong-term maintenance to keep a product healthy over years+2
用你的语言学习 Vibe 编程:从原型到生产
每一节课、测验和导师回复都以你的语言显示。AI 导师会用你提问的语言来回答。
