https://github.com/nrcool/spotify-api
https://github.com/nrcool/spotify-api
Last synced: about 22 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/nrcool/spotify-api
- Owner: nrcool
- Created: 2020-09-01T19:49:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T19:50:56.000Z (almost 5 years ago)
- Last Synced: 2025-06-04T09:04:43.497Z (8 days ago)
- Language: JavaScript
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spotify-api-intro
This Repo is the result of a tutorial that teaches how to use Spotify's API with react.
It's a siple app that allos users to see what song they currently have playing on Spotify.
There are two parts to it, the auth-server, and the client.## Getting Statrted
### 1) Create an App
- Visit https://developer.spotify.com/
- Log in and create an app
- Enter http//localhost:8888/callback as the redirect uri
- Save your changes
- Copy down the following: Redirect uri, client id, client secret### 2) Start Auth Server
- Navigate to the auth-server directory `cd auth-server`
- Install the dependencies `npm install`
- Paste in the redirect uri, client id, and client secret you copied in step 1
- Run the Server `node authorization_code/app.js`### 3) Start Client
- Navigate to the auth-server directory `cd client`
- Install the dependencies `npm install`
- Run the Server `npm start`### 4) Use the App
- Make sure you have a song playing (or paused) on a Spotify app
- Visit http://localhost:3000
- Click 'Log in with Spotify' and log in
- Click the 'fetch data from spotify' Button