API response cacher application.
This application is intended for local usage only. Use it to cache the responses gotten from requests made to an API. The body of all requests should be an AxiosRequestConfig, which will be used to make the first request to an endpoint and then cache the response.
Make a request and cache it (subsequent requests will use the cached response):
curl --location --request POST 'http://localhost:3100/cache' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "https://randomuser.me/api",
"method": "GET"
}'
Clear local cache:
curl --location --request POST 'http://localhost:3100/clear-cache'
# Install dependencies
$ npm install
# Start application in development mode
$ npm start
# Linting
$ npm run lint
$ npm run lint:fix
# Build
npm run build