A fun game where users guess the song title based on a snippet of lyrics. Built with React (frontend) and FastAPI (backend).
-
Fetch random song lyrics
-
Submit guesses and get feedback
-
Track remaining attempts
-
Score system (+10 points for correct guesses & -5 for wrong guesses)
-
Win/Lose popups with correct answers
FastAPI
Python
Uvicorn
git clone
cd Lyric_backend
Install Package
pip install -r requirements.txt
Add .env file
OPENAI_API_KEY=
Start the backend server
python lyric.py
GET /generate-lyric
POST /check-guess
Parameter | Type | Description |
---|---|---|
user_guess |
string |
Submit a guess and get feedback |
-
React.js
-
Tailwind CSS
-
Axios
cd Lyric_UI
npm install
npm run dev