handling Rock music data with cache and make faster to access.
- Create a
.env
file like.env.example
with the credentials and informations; - Go to Spotify API and get the token to SPOTIFY_TOKEN into .env
- Run
docker run --name redis -p 6973:6973 redis
or justdocker-compose up
npm start
http://localhost:3000/spotify?maket=BR&seed_genres=rock
- Go to developer tools in browser, look at Network and see the Time in first request and how it decrease in second because the data are cached in memory with Redis.