A premium vocabulary learning app built with React (Frontend), FastAPI (Backend), and Aiogram (Bot).
- Premium UI: Dark mode, glassmorphism, amber accents.
- Vocabulary Manager: Add/Delete English words with Uzbek translations.
- Smart Quiz: Auto-generated 4-option quizzes from your own word list.
- PostgreSQL: Robust data storage for production.
- Python 3.10+
- PostgreSQL server installed and running
- Ngrok (for local testing)
- Install dependencies:
pip install -r requirements.txt
- Create a PostgreSQL database (e.g.,
quiz_db). - Set environment variables:
export BOT_TOKEN='your_token_here' export DATABASE_URL='postgresql://user:password@localhost:5432/quiz_db'
- Run the combined backend script:
python backend_app.py
- Run ngrok:
ngrok http 8000
- Copy the
https://...URL and update theWEB_APP_URLenv var or code.
- Go to @BotFather.
- Use
/setwebappto link your bot to the Ngrok URL.