The Artist Comparison Game interactive game where players guess whether an artist has a higher or lower number of followers than another artist.
- React
- Vite
- Tailwind CSS
- Spotify API (for fetching random artists)
To run this project locally, follow these steps:
- Node.js (v14 or above)
- npm or yarn
-
Clone the repository:
git clone <your-repo-url> cd <your-repo-directory>
-
Install the dependencies:
Using npm:
npm install
Or using yarn:
yarn install
-
Set up the Spotify API:
- Create a Spotify Developer account if you don't have one.
- Create a new app in the Spotify Developer Dashboard.
- Get your
Client ID
andClient Secret
. - Set up your
getRandomArtist
function inspotifyService.js
to fetch data from the Spotify API using your credentials.
-
Start the development server:
Using npm:
npm run dev
Or using yarn:
yarn dev
-
Open your browser:
Navigate to
http://localhost:3000
(or the specified port) to see the game in action.