Skip to content

nuwanchiran/spotica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotica - Song player and lyrics app

An OAuth2.0 based Application with Spotify API

Preview

image

Installation requirements

  • node v14.*
  • yarn 1.22.*

Set up the application in local environment

  1. Clone the app from Github

  2. Go to https://developer.spotify.com and create a project to get a client id and a secret id.

  3. Create a .env file in the root of client folder and add client id and root URL to it.

    REACT_APP_AUTH_URL=https://accounts.spotify.com/authorize REACT_APP_CLIENT_ID=

  4. Create a .env file in the root of server folder and add client id, secret id and genius access token to it.

    clientId= clientSecret= GENIUS_ACCESS_TOKEN=

  5. Genius access token can be created from https://genius.com/api-clients

Start server

yarn install
yarn run devstart

Start client app

yarn install
yarn start

How to test

  1. After starting server and client, goto localhost:3000
  2. Click login with Spotify.
  3. Enter your spotify login details and submit.
  4. If successfull, you will be redirected to the client app again.
  5. Now you are successfully logged in.