Quick Start
Follow these steps to run any code snapshot on your local machine:Navigate to the snapshot folder
Open your terminal and navigate to the specific snapshot you want to use:
Install dependencies
Install all required npm packages:This downloads all dependencies listed in
package.json. The first install may take a few minutes.Start the development server
Run the development server:Your application will start, typically at
http://localhost:5173 (for Vite projects) or http://localhost:3000 (for Create React App projects).Comparing Your Code
When your code isn’t working as expected, use this workflow:Visual Comparison
Visual Comparison
- Open the snapshot folder in your code editor
- Open your project folder in a separate window
- Compare files side-by-side
File-by-File Review
File-by-File Review
Focus on the files you’ve been working on:
- Components - Check component structure, props, and JSX
- State management - Verify
useState,useReducercalls - Event handlers - Ensure functions are properly bound
- Imports - Confirm all imports are correct and paths match
Console & Network
Console & Network
Check browser developer tools:
- Console tab - Look for JavaScript errors or warnings
- Network tab - Verify API calls and asset loading
- React DevTools - Inspect component props and state
Common Use Cases
Starting a New Section
Scenario: You want to begin Section 10 without completing Section 9.Solution:You now have the starting point for Section 10 ready to go.
Debugging Issues
Scenario: Your app crashes but it works in the video.Solution:
- Find the corresponding snapshot
- Run the snapshot to confirm it works
- Compare your code file-by-file
- Focus on recently changed files
Skipping Ahead
Scenario: You want to see the finished version before coding.Solution:
Look for folders named
finished, final, or numbered highest in the section.Experimenting
Scenario: You want to test modifications without breaking your code.Solution:
- Copy a snapshot to a new location
- Make your experimental changes
- Keep your original code intact
Working with Different Project Types
The course uses different build tools throughout:- Vite Projects
- Next.js Projects
- Create React App
Most modern sections use Vite:Default URL:
http://localhost:5173Troubleshooting
npm install fails
npm install fails
Problem: Dependency installation errorsSolutions:
- Update Node.js to version 18 or higher
- Clear npm cache:
npm cache clean --force - Delete
node_modulesandpackage-lock.json, then retry - Try
npm install --legacy-peer-deps
Port already in use
Port already in use
Problem: Error: Port 5173 (or 3000) is already in useSolutions:
- Stop other development servers
- Kill the process using the port:
- Use a different port:
npm run dev -- --port 3001
Code doesn't match video
Code doesn't match video
Problem: Snapshot code looks different from the videoExplanation:
This is normal! The course may have been updated, or you might be looking at a different snapshot stage.Solutions:
- Check the snapshot folder name (starting vs intermediate vs finished)
- Verify you’re in the correct section folder
- Remember that snapshots reflect the exact moment they were captured
Module not found errors
Module not found errors
Problem: Cannot find module ‘react’ or other packagesSolutions:
- Ensure you ran
npm installin the correct directory - Check that
node_modulesfolder exists - Verify
package.jsonis in the same directory - Try deleting
node_modulesand reinstalling
If you’re still experiencing issues after trying these solutions, post in the course Q&A section with:
- The specific section and snapshot name
- Your Node.js version (
node --version) - The complete error message
- Your operating system
Best Practices
Code Along First
Always try to code along with the lectures before checking snapshots. This reinforces learning and helps identify where you might need extra practice.
Don't Copy-Paste
When comparing code, type the corrections manually rather than copying. This helps build muscle memory and understanding.
Keep Snapshots Clean
Don’t modify the original snapshot folders. Copy them elsewhere if you want to experiment, keeping the originals as reference.
Use Version Control
Initialize a git repository for your project to track your own changes:
Next Steps
Browse All Sections
View the complete index of all 34 course sections and their available snapshots
Lecture Attachments
Learn about standalone code files and resources attached to specific lectures