This is a NextJS App using:
asdf install
yarn install
cp .env.local.sample .env.local
Create an application on Spotify Dashboard. You will need a name and a description, here's an example:
- name: "My own player"
- description: "This is a player made for education purposes"
Get back the client_id
and client_secret
.
Add a redirect_uri
in the settings: http://localhost:3000/api/callback.
Set all that information in the .env.local
file.
You will need a Spotify premium account for this project, if you don't have one, you can create a new account and you will have 15 days free (just don't forget to immediatly cancel your subscription).
# Development mode
yarn dev
# Production mode
yarn start
yarn build
You can use eslint to help you format your code.
yarn lint