This simple proxy caches existing API calls on Redis, expiries are configurable for each route.
End user sends POST query with wanted action to the proxy, then proxy caches and forwards the request from the original API or from cached result (if it exists on Redis) to the user.
Example query:
{
"action": "API_CACHE",
"query": "beers/1"
}
npm i
All below parts require Redis running.
npm run start
npm i -g pm2
./build.sh <folder> <port> [install]
npm run test