A React + TypeScript + Vite raffle application with automated CSP management and deployment workflows.
# Install dependencies
npm install
# Configure git hooks (one-time setup)
npm run setup
# Start development server
npm run devFor complete setup, development, and deployment information, see:
This includes:
- Development setup and workflows
- Content Security Policy (CSP) configuration
- Git hooks and pre-commit automation
- Build and deployment processes
- Environment configuration
- Troubleshooting guide
- Frontend: React 18 + TypeScript + Vite
- Styling: CSS Modules + Tailwind CSS
- Build: Vite with TypeScript
- Deployment: Netlify with automated CSP headers
- Security: Automated CSP management with git hooks
- Automated CSP injection/removal for development/production
- Git hooks prevent accidental CSP commits
- Environment-specific API configurations
- Netlify deployment with proper security headers
| Command | Description |
|---|---|
npm run setup |
Configure git hooks (one-time) |
npm run dev |
Development server |
npm run build |
Production build |
npm run deploy |
Deploy to production |
- Run
npm run setupfor first-time setup - Use
npm run devfor development - Commit normally - git hooks handle CSP cleanup automatically
- See DOCUMENTATION.md for detailed workflows
[Add your license here]