Tha main goal of this project is retreive a list of Spotify playlist based on current Weather. The Weather is retreived from the Open Weather Map service and filtered by City name or geolocation coordinates.
- Docker I/O
Firstly we need to build the docker image:
docker build -t ifood .
Run command will push up the micro-service:
docker run -it -v $(pwd):/app -p 5000:5000 ifood ./entrypoint.sh
Simple http call to the service URL:
curl -X GET 127.0.0.1:5000/playlists?city=new+york -H "X-SPOTIFY-TOKEN: <spotify-jwt>" -H"X-OPENWM-APPID: 504002e265ed827f841600d3259c32ee"
Can run the API tests:
docker run -it -v $(pwd):/app -p 5000:5000 ifood ./entrypoint.tests.sh