Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify API App

Overview

This is a simple application that provides an API for authenticating your Spotify app with an account. You can get oauth token an refresh tokens using this API. For everything else, please use the official API described in https://developer.spotify.com/documentation/web-api/reference/

Getting Started

Configuration

Environment Variables

The app requires the following environment variables to be set in a .env file in the root of the project:

  • SPOTIFY_CLIENT_ID: Your Spotify Client ID.
  • SPOTIFY_CLIENT_SECRET: Your Spotify Client Secret.
  • SPOTIFY_REDIRECT_URI: Your Spotify Redirect URI.

Obtaining Credentials

  1. Create a Spotify Developer Account:

  2. Create a New Application:

    • Click on "Create App".
    • Fill in the required details and click "Create".
  3. Set Redirect URI:

    • In the app dashboard, go to the "Settings" tab.
    • Add a Redirect URI (e.g., http://localhost:3000/callback).
  4. Get Client ID and Client Secret:

    • After creating the app, you will be redirected to the app dashboard.
    • Copy the Client ID and Client Secret from the dashboard.
  5. Create a .env File:

    • In the root of your project, create a file named .env.
    • Add the following lines to the .env file:
SPOTIFY_CLIENT_ID=your_client_id_here
SPOTIFY_CLIENT_SECRET=your_client_secret_here
SPOTIFY_REDIRECT_URI=your_redirect_uri_here

Running

Run this as any other node.js api.

	git clone https://github.com/yourusername/spotify-api-app.git spotify-web-app
	cd spotify-api-app
	npm install
	npm run start

About

Simple spotify App that integrates with my account. Just for fun :)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages