Skip to content

mananhora/quiz-generator

Repository files navigation

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

HOW TO RUN THE APP

  1. 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.

  2. RUN THE FRONTEND APP npm run dev

Deployment

Frontend (Vercel)

  1. Connect your GitHub repository to Vercel
  2. Add environment variable in Vercel project settings:
    • VITE_API_URL: Your Render backend URL

Backend (Render)

Deploy your Flask backend to a hosting service (e.g., Heroku, DigitalOcean, etc.) Make sure to:

  1. Set environment variables:
    • ANTHROPIC_API_KEY: Your Claude API key
    • FLASK_ENV: Set to 'production' in deployment
  2. Update CORS settings with your Vercel domain

Environment Variables

Frontend (Vercel)

  • VITE_API_URL: Your Render backend URL

Backend (Render)

  • ANTHROPIC_API_KEY: Your Claude API key
  • FLASK_ENV: Set to 'production' in deployment

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •