A Spotify web application that displays your top tracks/top artists and creates a playlist based on user's Spotify history.
To implement OAuth and work with a third-party API.
- React
- Typescript
- Next.js
- Spotify API
Clone down this repository. You will need node and npm installed globally on your machine.
$ git clone https://github.com/jonathancarpena/spotify-records.git
- Install project folder
npm install
- Visit https://developer.spotify.com/dashboard/ and create a new app
- Input an Application Name and Description
- Website input "http://localhost:3000/"
- Redirect URIs input "http://localhost:3000/dashboard"
- (Important) Open "Users and Access", add a Spotify User (limit is 25)
To run this project, you will need to add the following environment variables to
your .env
file inside the server folder.
NEXT_PUBLIC_CLIENT_ID
: Retrieve Client ID from your Spotify Dashboard
NEXT_PUBLIC_CLIENT_SECRET
: Retrieve Client Secret from your Spotify Dashboard
NEXT_PUBLIC_REDIRECT_URI
: Retrieve Redirect URI from your Spotify Dashboard
Development mode. Open http://localhost:3000 to view it in the browser.
npm run start