# 1. Install dependencies
pnpm install
# 2. Run development server
pnpm dev
# 3. Open browser to http://localhost:5173# Make sure you're on main
git checkout main
# Make changes to code...
# Test before committing
pnpm test
pnpm run type-check
# Commit and push
git add .
git commit -m "feat: your change description"
git push origin mainGitHub Actions will automatically:
- ✅ Run tests
- ✅ Check types
- ✅ Try to build
Check the ✅ or ❌ on GitHub before deploying.
# When ready to release to users
git checkout prod
git merge main
git push origin prodGitHub Actions will automatically:
- 🏗️ Build the site
- 🚀 Deploy to GitHub Pages
- 🌐 Live in ~2 minutes at: https://valforte.github.io/Initiative-Tracker/
pnpm dev # Start dev server
pnpm build # Build for production
pnpm preview # Preview production build locally
pnpm test # Run tests once
pnpm test:watch # Run tests in watch mode
pnpm test:ui # Open test UI
pnpm run type-check # Check TypeScript typesmain: Development branch - push here for daily workprod: Production branch - merge here to deploy to users
- Full workflow explanation: See
GIT_WORKFLOW.md - GitHub setup: See
GITHUB_SETUP.md - Contributing: See
CONTRIBUTING.md - Changelog: See
CHANGELOG.md
Tests failing?
pnpm test:watch # Run in watch mode to see what's failingType errors?
pnpm run type-check # See all type errorsBuild failing?
pnpm build # Try building locally firstSite not updating after deploy?
- Hard refresh:
Ctrl+Shift+R(Windows) orCmd+Shift+R(Mac) - Wait 2-3 minutes for GitHub Pages CDN
- Check
GIT_WORKFLOW.mdfor detailed explanations - Check GitHub Actions tab for error details
- Open an issue with:
- What you tried
- What happened
- Error messages
- Link to failed Action (if applicable)