π» Step 4: Build Mode
Days 4-12 of your journey
This is where the magic happens. Build mode is your main workspace for writing code, creating features, and bringing your product to life.
Purposeβ
In Build mode, 1M Code acts as a senior developer pair programmer. It will:
- Write code for you based on your descriptions
- Explain code concepts when you're confused
- Debug issues as they arise
- Guide you through best practices
When to Use This Modeβ
Use Build mode when:
- You're ready to write code
- You're implementing features from your PRD
- You need help with code you don't understand
- You're creating files and project structure
Available Toolsβ
| Tool | Purpose |
|---|---|
read | Read any file in your project |
edit | Create and modify code files |
browser | Research documentation and solutions |
command | Run terminal commands (npm, git, etc.) |
mcp | Use external tools and integrations |
Build mode has full tool accessβthis is where real development happens.
Example Promptsβ
Starting Developmentβ
Let's start building my water reminder app.
Based on our plan, what should we build first?
Creating Componentsβ
Create a React component for the reminder settings.
Users should be able to set an interval (15, 30, 45, or 60 minutes).
Implementing Featuresβ
Implement the water logging feature.
When users tap a button, it should increment their daily count
and save to local storage.
Understanding Codeβ
I don't understand this useEffect hook.
Can you explain what it does in simple terms?
Fixing Issuesβ
The reminder notification isn't showing up.
Here's my code. What's wrong?
The Build Processβ
1. Start Simpleβ
Don't try to build everything at once. Start with the most basic version:
First, let's create a static page that just shows a button.
Once that works, we'll add the actual functionality.
2. Build Incrementallyβ
Add one feature at a time. Test after each addition:
Great, the button works. Now let's make it increment a counter.
3. See Progress Earlyβ
Get something visible on screen as fast as possible:
Can we see this in the browser? Run the development server.
4. Iterateβ
Build β Test β Fix β Repeat:
Okay, the counter works but resets on page refresh.
Let's add local storage to persist it.
What 1M Code Will Doβ
When you ask 1M Code to build something, it will:
- Understand your request β Ask clarifying questions if needed
- Propose a solution β Explain what it plans to do
- Write the code β Create or modify files
- Explain the changes β Help you understand what it wrote
- Run commands β Install dependencies, start servers, etc.
The Approval Flowβ
For each action, 1M Code will ask your permission:
I want to create a new file: src/components/ReminderSettings.tsx
[Approve] [Reject] [Edit]
- Approve β Let it proceed
- Reject β Stop and discuss alternatives
- Edit β Modify the proposed change
Key Concepts for Beginnersβ
Componentsβ
In React, everything is a componentβa reusable piece of UI.
function WaterButton() {
return <button>Drink Water</button>;
}
Stateβ
State is data that changes over time, like a counter.
const [count, setCount] = useState(0);
Propsβ
Props are how components receive data from parents.
<WaterButton onClick={handleClick} />
Don't worry if these don't make sense yet. 1M Code will explain as you go.
Common Mistakesβ
Mistake 1: Trying to Understand Everythingβ
Problem: Getting stuck trying to understand every line of code. Fix: Focus on the "what," not the "how." You'll understand more over time.
Mistake 2: Building Too Much at Onceβ
Problem: Trying to implement 5 features before testing 1. Fix: Build one thing, test it, then move on.
Mistake 3: Ignoring Errorsβ
Problem: Seeing a red error and hoping it goes away. Fix: Share the error with 1M Code immediately. Errors are clues.
Mistake 4: Not Saving Progressβ
Problem: Losing work because you didn't commit to git. Fix: Commit frequently. "Save game" after each working feature.
Working with Errorsβ
Errors are normal. When you see one:
- Don't panic β Errors are how we learn
- Read the message β Often the error tells you exactly what's wrong
- Copy the full error β Share it with 1M Code
- Explain what you were doing β Context helps debugging
Example:
I'm getting this error when I click the button:
TypeError: Cannot read properties of undefined (reading 'count')
I was trying to increment the water counter.
Progress Checkpointsβ
Good milestones to hit during Build mode:
- Project runs locally (
npm run devworks) - Basic UI is visible in browser
- Core feature #1 works
- Core feature #2 works
- Core feature #3 works
- All core features work together
- No major errors in console
When to Move Onβ
You're ready for π§ͺ Test mode when:
- β All core MVP features work
- β You can use the app as a user would
- β The app runs without major errors
- β You've committed your code to git
Switching to Test Modeβ
When you're ready, switch to Test mode:
Slash command: /test
Or say: "Core features are working. Let's test and find bugs."
A walkthrough video for Build mode is in production. Check back soon or join our Discord for updates.