Skip to content

Commit

Permalink
Merge pull request #6 from akashrchandran/develop
Browse files Browse the repository at this point in the history
updated readme
  • Loading branch information
akashrchandran authored Oct 8, 2022
2 parents 33bf5fb + 1266f06 commit 64f95a3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,41 @@ error response:
"message": "lyrics for this track is not available on spotify!"
}
```

## Deployment

> Want to host your own version of this API, But first you need SP_DC cookie from spotify
__Find SP_DC__

You will find the detailed guide [here](https://github.com/akashrchandran/syrics/wiki/Finding-sp_dc).

__Heroku__


[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://dashboard.heroku.com/new?template=https://github.com/akashrchandran/spotify-lyrics-api)

__Run locally__

> use git to clone the repo to your local machine or you can download the latest [zip](https://github.com/akashrchandran/spotify-lyrics-api/archive/refs/heads/main.zip) file and extract it.
*You need to have PHP installed on you machine to run this program.*

__Enter into the folder via terminal__
```sh
cd spotify-lyrics-api
```
__Set SP_DC token as environment variable temprorily__

```sh
export SP_DC=[token here and remove the square brackets]
```

__Start the server__
```
php -S localhost:8000
```
now open your browser and type `localhost:8080` and you should see the program running.
## Credits

[Me](https://akashrchandran.in)
Expand Down

0 comments on commit 64f95a3

Please sign in to comment.