Added support for Docker

- Updated SetUp.md with a "Run locally with Docker" section
- Moved requirements.txt to the root of the repo since some hosting
  services require the file to be there (eg. Heroku https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-python)
This commit is contained in:
AlexandrosAlexiou
2021-11-30 21:31:48 +02:00
committed by Andrew Novac
parent 0bf396a69f
commit 02b606b543
7 changed files with 48 additions and 2 deletions

View File

@@ -43,6 +43,28 @@ curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Authorizat
* Deploy!
## Run locally with Docker
* You need to have [Docker](https://docs.docker.com/get-docker/) installed.
* Add Environment Variables:
* `SPOTIFY_REFRESH_TOKEN`
* `SPOTIFY_CLIENT_ID`
* `SPOTIFY_SECRET_ID`
* To run the service, open a terminal in the root folder of the repo: <br>
Execute:
```
docker compose up
```
* When finished, navigate to [http://localhost:5000/](http://localhost:5000/)
* To stop the service, open a terminal in the root folder of the repo: <br>
Execute:
```
docker compose down
```
## ReadMe
You can now use the following in your readme: