What is Deployment?
Deployment transfers your code from your computer to servers that are always online.
After deployment, anyone with the URL can access your app—24/7, from anywhere in the world.
What is Hosting?
Hosting means servers running your code continuously to handle visitor traffic.
When someone visits your URL:
- Their browser requests your site
- The hosting server responds with your app
- The page loads in their browser
Why Vercel?
Vercel is the recommended hosting platform for this course:
- Free for personal projects
- Built by the creators of Next.js (perfect compatibility)
- Automatic deployments when you push to GitHub
- Global CDN for fast loading worldwide
How Auto-Deployment Works
Once set up, your workflow becomes:
Push to GitHub → Vercel detects → Rebuilds automatically → Site updates
Changes go live within ~1 minute. No manual deployment needed after initial setup.
Setting Up Vercel
Step 1: Create a Vercel account
Sign up at vercel.com. Use “Continue with GitHub” for easiest setup.
Step 2: Install Vercel CLI
npm i -g vercel
Step 3: Authenticate
vercel login
Your browser opens for authentication. Complete the sign-in process.
Step 4: Deploy
In your project folder, tell Claude:
Deploy this project to Vercel
Or run manually:
vercel
Follow the prompts. Vercel will:
- Detect your project type
- Build your app
- Deploy to a
.vercel.appURL
Your Live URL
After deployment, you’ll receive a URL like:
https://my-quiz-app.vercel.app
This is your live site! Share it with anyone.
Custom Domains
Want yourname.com instead of .vercel.app?
- Buy a domain from any registrar (Namecheap, Google Domains, etc.)
- In Vercel dashboard, go to your project → Settings → Domains
- Add your domain and follow DNS instructions
Updating Your Site
After initial deployment, updates are automatic:
- Make changes locally
- Push to GitHub:
Save my changes to GitHub - Vercel automatically rebuilds and deploys
- Site updates in ~1 minute
Troubleshooting
”vercel: command not found”
The Vercel CLI isn’t installed.
Fix:
npm i -g vercel
“Authentication failed”
Fix: Run vercel login and complete the browser authorization.
Build errors
Fix:
- Check the Vercel dashboard for error logs
- Share the error with Claude for debugging help
Old version still showing
Fix:
- Wait ~1 minute for deployment to complete
- Hard refresh:
Cmd+Shift+R(Mac) orCtrl+Shift+R(Windows) - Check Vercel dashboard for deployment status
Works locally but not on Vercel
Fix:
- Check Vercel build logs for differences
- Environment variables may be missing in Vercel
- Share logs with Claude for diagnosis
Post-Deployment Checklist
After going live:
- Test on mobile devices
- Test on different browsers
- Share the URL with a friend
- Bookmark your Vercel dashboard
Congratulations!
You’ve completed Module 2. You now know how to:
- Plan a project with clear requirements
- Build with Claude Code
- Iterate using screenshots and feedback
- Save to GitHub for version control
- Deploy to Vercel for a live URL
This workflow applies to any web project—landing pages, tools, dashboards, prototypes.
Ready to go live? Run start 2-5 to deploy your quiz app.