This repository contains the source code of Spotify clone app created for educational purposes.
First, you have to create an .env.local file in the root of the project and set the following environment variables. You can acquire Client ID and Client Secret from Spotify for Developers by creating a new application in your dashboard.
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_CLIENT_ID=<your spotify client-id>
NEXT_PUBLIC_CLIENT_SECRET=<your spotify client-secret>
JWT_SECRET=HowDoYouTurnThisOnNote: You also need to set
Redirect URIstohttp://localhost:3000/api/auth/callback/spotifyin your application settings.
Then, you can run the following command to start the server:
npm run devOpen http://localhost:3000 with your browser to see the result.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.