This a node.js proxy api for Discogs. It…
- send authenticated requests to Discogs
- caches everything with a Redis server
- Set environment variables in a
.env
file - Deploy this repo to any node host
- Replace
api.discogs.com
withedapi.glitch.com
in your requests
- Create free Redis database on https://redislabs.com/
- Express.js API with middleware to cache
disconnect
module for speaking with Discogsredisio
module for speaking with Redis- A middleware function that either returns cache OR runs route and sets cache
Test the cache response speed in the terminal with ./test-performance.sh
.
You might need to chmod +x test-performance.sh
as well.