Skip to content

Femi236/home-board-spotify-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Accounts Authentication

This project contains the authorization code flow to connect to the Spotify API.

Inspired by

Installation

This is run on Node.js. On its website you can find instructions on how to install it.

Once installed, clone the repository and install its dependencies running:

$ npm install

Using your own credentials

You will need to register your app and get your own credentials from the Spotify for Developers Dashboard.

To do so, go to your Spotify for Developers Dashboard and create your application.

Once you have created your app, create a .env file in the root directory and create 2 variables.

$ SPOTIFY_CLIENT_ID=""
$ SPOTIFY_CLIENT_SECRET=""
$ SPOTIFY_REDIRECT_URI=""

replace the quotation marks with your client_id, client_secret and redirect_uri that you received from Spotify.

Running the examples

In order to run the code, open the terminal and run:

$ node app.js

Then, open http://localhost:8888 in a browser.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published