A simple game where you test your knowledge of music popularity. Guess which of two Spotify songs is more popular and see how high you can score.
- Spotify Authentication: Securely log in with your Spotify account.
- Guess the Popularity: Compare two random songs and guess which one has a higher popularity score on Spotify.
- Score Tracking: Keep track of your score as you play.
- Game Over State: The game ends when you guess incorrectly.
- Frontend:
- React
- Tailwind CSS
- Backend:
- Express.js (for Spotify authentication)
- Node.js and npm installed on your machine.
- A Spotify Developer account and a registered application to get your client ID and client secret.
- Clone the repository:
git clone https://github.com/PawiX25/Statify
- Install the dependencies:
npm install
- Create a
.envfile in the root directory and add your Spotify API credentials:CLIENT_ID=your_spotify_client_id CLIENT_SECRET=your_spotify_client_secret REDIRECT_URI=http://127.0.0.1:8888/callback k - Start the development server:
npm run dev
This will start both the React development server and the Express.js authentication server.