|
|
|
|
|
|
| 1. Cloning the repository |
https://github.com/Glebunya1234/TuneWave.git |
| 2. Install dependencies |
yarn install |
| 3. Environment setup |
You need to create an application in Supabase and add the Spotify provider to Authentication/Providers, also in the Authentication/URL Configuration tab specify the Site URL (https://localhost:3000)You also need to create an application in the Spotify dashboard, enter your Spotify account and get a Client ID,
Client secret
Next, you need to create a NEXT_PUBLIC_SUPABASE_URL=******
NEXT_PUBLIC_SUPABASE_ANON_KEY=******
NEXT_PUBLIC_SPOTIFY_CLIENT_ID=******
NEXT_PUBLIC_SPOTIFY_CLIENT_SECRET=******
NEXT_PUBLIC_SITE_URL=https://localhost:3000 |
| 4. Create table |
|
You need to create one collections in your Supabase: CREATE TABLE user_tokens (
user_id TEXT PRIMARY KEY,
token TEXT NOT NULL,
refresh_token TEXT
); |
| 5. Project launch |
yarn dev |
|
Since using the API requires manually adding a user to the Spotify dashboard in development mode, the Spotify user data will not be loaded in the demo version! |




