mirror of
https://github.com/Alvin-Zilverstand/novatorem.git
synced 2026-03-06 02:57:12 +01:00
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:
committed by
Andrew Novac
parent
0bf396a69f
commit
02b606b543
22
SetUp.md
22
SetUp.md
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user