This guide will walk you through committing your code to GitHub and deploying to Vercel.
If you haven't already initialized git, run:
git init- Go to GitHub and sign in
- Click the "+" icon in the top right → "New repository"
- Name your repository (e.g.,
codecademy-landing) - Choose Public or Private
- DO NOT initialize with README, .gitignore, or license (we already have these)
- Click "Create repository"
git add .git commit -m "Initial commit: Codecademy-inspired landing page"# Add your GitHub repository as remote (replace USERNAME and REPO-NAME)
git remote add origin https://github.com/USERNAME/REPO-NAME.git
# Rename branch to main (if needed)
git branch -M main
# Push to GitHub
git push -u origin mainNote: If you're using SSH instead of HTTPS:
git remote add origin git@github.com:USERNAME/REPO-NAME.git-
Sign up/Login to Vercel:
- Go to vercel.com
- Sign up with GitHub (recommended for easy integration)
-
Import Your Project:
- Click "Add New..." → "Project"
- Find your repository in the list
- Click "Import"
-
Configure Project:
- Framework Preset: Create React App (auto-detected)
- Root Directory:
./(default) - Build Command:
npm run build(default) - Output Directory:
build(default) - Install Command:
npm install(default)
-
Environment Variables (if needed):
- Add any environment variables in the settings
- For this project, you can leave it as is
-
Deploy:
- Click "Deploy"
- Wait for the build to complete (usually 1-2 minutes)
- Your site will be live at
https://your-project-name.vercel.app
-
Install Vercel CLI:
npm install -g vercel
-
Login to Vercel:
vercel login
-
Deploy:
vercel
Follow the prompts:
- Link to existing project or create new
- Confirm settings
- Deploy
-
For Production Deployment:
vercel --prod
Once connected to GitHub, Vercel will automatically:
- ✅ Deploy every push to
mainbranch (production) - ✅ Create preview deployments for pull requests
- ✅ Rebuild on every commit
- Go to your project settings in Vercel
- Click "Domains"
- Add your custom domain
- Follow DNS configuration instructions
Common issues:
- Missing dependencies: Make sure all dependencies are in
package.json - Build errors: Check build logs in Vercel dashboard
- Environment variables: Add them in Vercel project settings
# Test build locally first
npm run build
# If it works locally, the issue might be environment-specificSimply push new changes to GitHub:
git add .
git commit -m "Update: description of changes"
git pushVercel will automatically redeploy!
# Initialize git
git init
# Add files
git add .
# Commit
git commit -m "Your commit message"
# Add remote (first time only)
git remote add origin https://github.com/USERNAME/REPO-NAME.git
# Push to GitHub
git push -u origin main
# Future updates
git add .
git commit -m "Update message"
git push- Analytics: View traffic and performance
- Logs: Check build and runtime logs
- Settings: Configure environment variables, domains, etc.
- Deployments: View all deployment history
Need Help?