cd frontend-project
npm run devAccess at: http://localhost:5173
cd frontend-project
npm run buildOutput: frontend-project/dist/
cd frontend-project
npm run previewcd frontend-project
npm run lintDeployment happens automatically via GitHub Actions when you push to main:
git push origin mainWhat happens:
- GitHub Actions workflow triggers on push to main
- Builds the frontend project (
npm ci && npm run build) - Uploads build artifact to GitHub Pages
- Deploys to production automatically
Monitor deployment: https://github.com/devfreddy/devfreddy.github.io/actions
git statusgit log --oneline -10git checkout -b feature/feature-namegit add .
git commit -m "Description of changes"git push origin maintree -I 'node_modules|dist|.git' -L 3find . -name "*.jsx" -not -path "./node_modules/*"grep -r "searchTerm" --include="*.jsx" --include="*.js"cd frontend-project
npm installnpm outdatednpm update package-namenode --version
# Should show 24.4.1 (from volta config in package.json)cd frontend-project
rm -rf node_modules package-lock.json
npm installcd frontend-project
rm -rf node_modules/.vite
npm run devcd frontend-project
npm run build
ls -la dist/Initialize context for a new work session:
In Claude Code, use the /start slash command:
/start
What it does:
- Reviews recent session work and next steps
- Checks active features and sprint priorities
- Identifies any blockers
- Suggests starting point for today
Complete session documentation and commit changes:
In Claude Code, use the /wrap slash command:
/wrap
What it does:
- Updates session wrap-up documentation
- Updates COMMANDS.md, TROUBLESHOOTING.md if needed
- Updates ROADMAP.md and feature docs
- Commits all documentation changes
- Provides session summary
Set up documentation structure for a new feature:
In Claude Code, use the /new-feature slash command:
/new-feature
What it does:
- Creates feature directory with all documentation files
- Updates feature index
- Provides template structure for documentation
ls -lt docs/sessions/ls -la docs/features/