Skip to content

luizcalaca/node-redis-cache-spotify-api

Repository files navigation

Redis to cache Rock music from Spotify API

handling Rock music data with cache and make faster to access.

Spotify API

Technologies

Requirement

Installation and Run

  1. Create a .env file like .env.example with the credentials and informations;
  2. Go to Spotify API and get the token to SPOTIFY_TOKEN into .env
  3. Run docker run --name redis -p 6973:6973 redis or just docker-compose up
  4. npm start

Routes

http://localhost:3000/spotify?maket=BR&seed_genres=rock

Performance

  1. 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.

About

Node.js + Redis + Spotify API + Caching data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published