课前准备 Part 2Pre-class setup Part 2
课前准备 Part 2
剩下的交给 ClaudeBefore Class · Part 2
Let Claude set it up
How it works怎么进行
- Open Claude打开 ClaudeA new session in the Code tab, on this computer.在 Code tab 开一个这台电脑上的新 session。
- Copy paste instructions复制贴上指示Copy them from this site, paste them in and send.从这个网站复制,贴进去再发送。
- Claude sets everything upClaude 帮您设好一切Class tools, sign-ins and your class project, then a final check.课程工具、登录和课程项目,最后再检查一次。
You only need to您只需要
You never type commands. When it's finished you'll see a checklist with every item ticked.您不用打任何命令。完成后,您会看到全部打勾的清单。
先把 Claude 设定好Set up Claude first
请按顺序完成这 6 个步骤。Follow these 6 steps in order.
1请在 主文件夹(Home)C 盘建立 AI Class 文件夹。Create the AI Class folder in your home folderon the C drive.
- a请打开 Finder,选 Go › Home(或按 Shift-Command-H)。请打开 File Explorer,按 This PC,再打开 C 盘(显示 Windows (C:) 或 Local Disk (C:)),在空白的地方按右键。Open Finder and choose Go › Home (or press Shift-Command-H).Open File Explorer, click This PC, open the C drive (Windows (C:) or Local Disk (C:)), then right-click an empty spot.
- b请选 File › New FolderNew › Folder。Choose File › New FolderNew › Folder.
- c请输入 AI Class,再按 ReturnEnter。Type AI Class, then press ReturnEnter.
也可以在 Finder 左边选 Home,再按 File › New Folder。Or in Finder, select Home on the left, then choose File › New Folder.
- This PC
- Desktop
- Documents
- Local Disk (C:)
2请打开 Code。Open Code.
- a请打开 Claude desktop app。Open the Claude desktop app.
- b请按左上角的 </>(Code) 按钮。就在 Chat 按钮旁边。(如果 Code 已经打开,请跳过。)Click the </> Code button at the top left. It sits right next to the Chat button. (Skip if Code is already open.)
3请开一个 new session,使用 主文件夹(Home)里的C 盘上的 AI Class 文件夹。Start a new session using AI Class in your home folderon the C drive.
- a请选择 This computer(旧版本可能显示 Local)。Choose This computer (older versions may show Local).
- b请按 Choose folder(菜单里是 No folder / Open folder...),选择 主文件夹(Home)里的C 盘上的 AI Class。文件夹窗口会先打开用户文件夹,请把左边的列表往下滚动,按 This PC,再按 C 盘,然后选 AI Class,最后按 Select Folder。Click Choose folder (the menu shows No folder / Open folder...) and choose AI Class in your home folderon the C drive. The folder window opens in your user folder: scroll down the left list, click This PC, then the C drive, then AI Class, then Select Folder.
4看到 Trust this workspace? 时,请确认并信任您的 AI Class 文件夹。If you see Trust this workspace?, check and trust your AI Class folder.
- a请确认路径是主文件夹下的 AI Class(例如 /Users/yourname/AI Class)。请确认路径是 C:\AI Class。Check that the path is your home folder, then AI Class (for example /Users/yourname/AI Class).Check that the path is C:\AI Class.
- b请按 Trust workspace。Click Trust workspace.
5permission mode 选 Auto。Set the permission mode to Auto.
- a请在 permission 选单选 Auto。Choose Auto in the permission menu.
- bCheck that the bottom of the message box now reads Auto.确认 message 输入框底部现在显示 Auto。
6模型选 Sonnet 5.5,effort 选 Medium。Choose Sonnet 5.5 with Medium effort.
- a请在模型选单选 Sonnet 5.5。Choose Sonnet 5.5 in the model menu.
- b请把 effort 设为 Medium。Set effort to Medium.
Can't find Sonnet 5.5? Update the Claude app. Still missing? Open More models and pick the newest Sonnet.找不到 Sonnet 5.5?先 update Claude app。还是没有,就打开 More models 选最新的 Sonnet。
Copy. Paste. Send.复制、贴上、发送。
Before you send, check:发送前,请确认:
- aOpen the Code tab in the Claude desktop app and return to the session you just set up on this computer.请在 Claude Desktop App 打开 Code tab,回到刚才在这台电脑设置好的 session。
- bPaste the full setup message into the message box.请把整段课前准备 message 贴进 message 输入框。
Before sending, check:发送前,请确认:
This is a new session on this computer, in AI Class in your home folderon the C drive.这是这台电脑 主文件夹(Home)里的C 盘上的 AI Class 里的新 session。
The model is Sonnet 5.5 with Medium effort (or the fallback above).模型是 Sonnet 5.5,effort 是 Medium(找不到时用上面的 fallback)。
The permission mode reads Auto.permission mode 显示 Auto。
- cClick Send. Claude starts setup. Follow its prompts and refer to the steps below when needed.按 Send,Claude 就会开始课前准备。接着请照它的提示操作,需要时参考下面的步骤。
If Claude says a setup command was blocked, it asks you to set the mode at the bottom right to Manual. Then each time it asks, click the arrow next to Always allow, then Allow once.如果 Claude 说某个设置命令被拦下了,它会请您把右下角的模式改成 Manual。之后它每次询问时,请点 Always allow 旁边的箭头,再选 Allow once。
Setup support · use when Claude asks课前准备参考 · Claude 提示时再做
Node.js + npm
Only if Claude asks youClaude 请您做时才需要When the Node.js installer opens, click Continue, then Install.Node.js 安装窗口打开后,请按 Continue,再按 Install。
Node.js installer example.Node.js 安装窗口示例。 When Windows asks to allow changes, check it says Node.js, then click Yes. Claude also installs Git and GitHub CLI, each with its own Do you want to allow... prompt: click Yes on each.Windows 询问是否允许更改时,请确认写的是 Node.js,再按 Yes。Claude 还会安装 Git 和 GitHub CLI,各有一个“Do you want to allow...”提示,每个都请按 Yes。
Check the app name and verified publisher.请看 App 名称和已验证发布者。 Enter your Mac login password, then click Close when it finishes.请输入 Mac 开机密码,装好后按 Close。
If installer screens appear, follow them to the end.如果出现安装画面,请照提示完成。
Reply done in the chat; Claude checks the version.在对话里回「好了」,Claude 会检查版本。
Example output输出示例node -v v24.20.0
GitHub 账号Make a GitHub account
You sign up yourself需要您自己注册Use the same Google email you used for Claude. Skip this step if you already have a GitHub account on that email.请用注册 Claude 的同一个 Google email。如果这个 email 已经有 GitHub 账号,可以跳过这一步。
Open github.com/signup. Enter your Google email, make a password and pick a username.打开 github.com/signup。填您的 Google email,设一个 password,再选一个 username。
Sign up for GitHub1Emailyou@gmail.com2Password••••••••3Usernameyour-nameContinueGitHub sign-up page · drawingGitHub 注册页面 · 示意图 Solve the puzzle, then type the code GitHub emails to you. Choose the Free plan and skip any extras.完成验证小游戏,再输入 GitHub 寄到 email 的验证码。选 Free 配套,其他选项都可以跳过。
If your Mac asks to install developer tools, click Install, then Agree.Mac 提示安装 developer tools 时,请按 Install,再按 Agree。
Claude then sets up GitHub on your computer. When a GitHub page asks for a code, type the code Claude shows in bold, or press Ctrl+V (Mac Cmd+V), click Continue, then click Authorize. If GitHub shows Confirm access, choose GitHub Mobile, an authenticator app or an email code, then enter the code on that page.接着 Claude 会在您的电脑设置好 GitHub。GitHub 页面要您输入验证码时,请输入 Claude 用粗体显示的验证码,或按 Ctrl+V(Mac 按 Cmd+V)贴上,再按 Continue,再按 Authorize。如果 GitHub 显示 Confirm access,请选 GitHub Mobile、authenticator app 或 email 验证码,再把验证码填在那一页。
1Device ActivationEnter your codeABCD-1234Continue2Authorize GitHub CLIGitHub CLI by GitHub wants to access your accountAuthorizeGitHub code and Authorize pages · drawingGitHub 验证码和 Authorize 页面 · 示意图 Example output输出示例4. GitHub CLI 已登录 ✅
4. GitHub CLI signed in ✅
Vercel
You sign in and answer any prompts需要您登录,并回答提示If Vercel asks for a plan, choose Hobby (free).Vercel 要您选配套时,请选 Hobby(免费)。If asked to sign in, choose Continue with GitHub and sign in with your GitHub account.请您登录时,选 Continue with GitHub,用您的 GitHub 账号登录。
If the Vercel page asks you, click Allow.Vercel 页面请您确认时,请按 Allow。
Match the shown settings.请对照图中的设置。 Example output输出示例3. Vercel CLI 已登录 ✅
3. Vercel CLI signed in ✅
Supabase
You sign in and answer any prompts需要您登录,并回答提示On the Supabase page click Continue with GitHub and sign in with the GitHub account you just made. Claude opens the page for you.在 Supabase 页面按 Continue with GitHub,用刚才做好的 GitHub 账号登录。Claude 会帮您打开页面。
When GitHub asks to authorise Supabase, click Authorize supabase, then continue in the Supabase tab.GitHub 询问是否授权 Supabase 时,按 Authorize supabase,然后回到 Supabase 分页继续。
Login code: if asked, paste it into the same waiting login window, not the chat, press Enter, then reply done.登录 code:收到提示时,请贴进同一个等待中的登录窗口,不是对话,按 Enter,再回「好了」。
The code unlocks your Supabase account: never put it in chat, files or logs.这个 code 能打开您的 Supabase 账号:不要贴进对话、文件或日志。Code and email blurred; use the same waiting login.Code 和 email 已模糊;请用同一个等待中的 login。 Example output输出示例2. Supabase 已登录 ✅
2. Supabase signed in ✅
课程模板Course template
Only if Claude asks youClaude 请您做时才需要If a black window covers Claude, click Claude in the taskbar to answer its question.如果黑色窗口盖住了 Claude,请点任务栏上的 Claude,回答它的询问。At the last step, when the course site starts (
npm run finish), a Windows firewall prompt for Node.js may appear: click Allow (older Windows: Allow access).最后一步课程网站启动时(npm run finish),可能出现 Node.js 的 Windows 防火墙提示:请按 Allow(旧版 Windows 是 Allow access)。Windows Node.js firewall prompt.Windows 的 Node.js 防火墙提示。 When the last step finishes, Claude opens the course page showing Congrats! 🎉 and one window with your checklist.最后一步完成后,Claude 会打开显示 Congrats! 🎉 的课程页面,以及一个显示您清单的窗口。
怎么知道准备好了?Did it work?
检查的工作由 Claude 帮您做。每次它停下来,都会给您这张清单;请看最后一行,就知道下一步要做什么。
Claude runs the checks. Read the last line for your next action.
15 项全部 ✅ = 做完了All 5 ✅ = you're done
Mac 示例;Windows 会显示 Windows,npm 版本因电脑而异Mac example; Windows shows Windows, and the npm version varies
========================================= ✅ AI for Business · 课前准备完成清单 ========================================= 电脑:Mac 1. Node.js + npm ✅ v24.20.0 / [npm 版本] 2. Supabase 已登录 ✅ 3. Vercel CLI 已登录 ✅ 4. GitHub CLI 已登录 ✅ 5. 课程模板打得开 ✅ http://localhost:3000 ========================================= 👉 下一步:全部好了 🎉 浏览器我帮您开了。上课那天请您带这台电脑来 — 就是这一台,加上充电器。 =========================================
========================================= ✅ AI for Business · Pre-class checklist ========================================= Computer: Mac 1. Node.js + npm ✅ v24.20.0 / [npm version] 2. Supabase signed in ✅ 3. Vercel CLI signed in ✅ 4. GitHub CLI signed in ✅ 5. Course template opens ✅ http://localhost:3000 ========================================= 👉 Next step: Everything is ready 🎉 I opened the browser for you. Bring this computer and its charger to class. =========================================
还没完成的项目会显示 ⬜。看下面的 👉 下一步,照着做就好。Anything unfinished shows as ⬜, and the 👉 Next step line underneath tells you exactly how to finish that one. Just follow it.
如果页面暂时没有回应,但项目自己的服务器仍在运行,请先让它继续。Claude 会查看页面和启动记录,不会停止它或再启动一份。If the page is not answering yet but the project's own server is still running, leave it running. Claude checks the page and startup log without stopping it or starting another copy.
2全部完成 ✅🎉 浏览器会自动打开「Congrats! 🎉」页面All done ✅🎉 The browser opens by itself on the "Congrats! 🎉" page
浏览器会显示 Congrats! 🎉 页面,下方有三个绿色勾:Node.js is running、Dependencies installed、Dev server is running。这表示您的课程项目已经准备好了。Your browser shows a Congrats! 🎉 page with three green ticks: Node.js is running, Dependencies installed and Dev server is running. That means your class project is ready.