Giter Site home page Giter Site logo

thekoding / spotify-clone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jdphenix/spotify-clone

0.0 1.0 0.0 559 KB

A working clone of Spotify, using their API and heavy custom css/sass.

Home Page: https://tune42-spotify.netlify.app

HTML 3.16% JavaScript 69.29% SCSS 27.55%

spotify-clone's Introduction

A spotify clone created from scratch with react. https://tune42-spotify.netlify.app/


For anyone wishing to fork or clone this repo, you will need to setup your own authorization link. To do this, you will need to create a development account with spotify for your own Client ID and to setup a redirect URI. You will need to add appropriate scopes of permissions that you are requesting from the user who would log into the app. You will also need a redirectUri to be set in your developer dashboard. The redirectUri is where spotify will send the user once they've authenticated with spotify using the Authorization Code Flow.

https://developer.spotify.com/documentation/general/guides/authorization-guide/ https://developer.spotify.com/documentation/general/guides/app-settings/#register-your-app https://developer.spotify.com/dashboard/ https://developer.spotify.com/documentation/general/guides/scopes/

Below is a mock example of what my private.js file looks like.


const authEndpoint = "https://accounts.spotify.com/authorize"
const redirectUri = 'http://localhost:3000/player'
const clientId = '######################' //Generated for you when you sign up at developer.spotify.com

const scopes = [
    'streaming',
    'playlist-modify-public',
    'playlist-modify-private',
    'playlist-read-private',
    'playlist-read-collaborative',
    'user-library-modify',
    'user-library-read',
    'user-top-read',
    'user-read-playback-position',
    'user-read-playback-state',
    'user-read-email',
    'user-read-private',
    'user-read-currently-playing',
    'user-modify-playback-state',
    'user-follow-modify',
    'user-follow-read',
];

const authLink = `${authEndpoint}?client_id=${clientId}&redirect_uri=${redirectUri}&scope=${scopes.join('%20')}&response_type=token&show_dialog=true`;

export default authLink;

spotify-clone's People

Contributors

mikelbook avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.