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
.envfile - Deploy this repo to any node host
- Replace
api.discogs.comwithedapi.glitch.comin your requests
- Create free Redis database on https://redislabs.com/
- Express.js API with middleware to cache
disconnectmodule for speaking with Discogsredisiomodule 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.