This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
HOW TO RUN THE APP
-
RUN THE BACKEND APP cd backend source ../.venv/bin/activate (activate the virtual environment) python app.py the app should now be running on http://localhost:5000.
-
RUN THE FRONTEND APP npm run dev
- Connect your GitHub repository to Vercel
- Add environment variable in Vercel project settings:
VITE_API_URL: Your Render backend URL
Deploy your Flask backend to a hosting service (e.g., Heroku, DigitalOcean, etc.) Make sure to:
- Set environment variables:
ANTHROPIC_API_KEY: Your Claude API keyFLASK_ENV: Set to 'production' in deployment
- Update CORS settings with your Vercel domain
VITE_API_URL: Your Render backend URL
ANTHROPIC_API_KEY: Your Claude API keyFLASK_ENV: Set to 'production' in deployment