← Build Your First Mini App with Claude Code
Week 2: Turn It into a WeChat Mini Program on Your Phone
Register a Mini Program, have Claude Code generate the skeleton, move the to-do list into it, put the data in the cloud, identify users, debug on a real device, and finally walk it through WeChat review with a checklist.
Unit 1
From Web Page to Mini Program
A Mini Program is not a web page, but every method you learned in Week 1 still applies.
- 1What a Mini Program Is, Getting an AppID, Installing DevToolsOne hour of prep before you start; get it right and the rest goes smoothly5 Q
- 2Have Claude Code Generate the Mini Program SkeletonFour files, one page: get it running first5 Q
- 3Pages and Interaction: Move the To-Do List into the Mini ProgramData lives in data, changes go through setData, local saves use storage4 Q
- 4Data in the Cloud: WeChat CloudBase DatabaseSwitch phones and your data is still there, no server to rent5 Q
- 5Identifying Users: openid and Cloud FunctionsNo login page needed; WeChat already knows who they are4 Q
- 6Real-Device Preview and Debugging: Run It on Your PhoneWorking in the simulator does not count; working on the phone does4 Q
- 7Week Assignment: Review Checklist and Privacy Protection GuidelinesPassing review the first time takes a checklist, not luck5 Q
