fetch query data from Wikipedia API and store it in redis(if key not present). Check the response time, Open Chrome Developer Tools > Network > /api/search?query=node and check the response time in "X-Response-Time" (in milliseconds)
- Express - Fast, unopinionated, minimalist web framework for node.
- Axios - Promise based HTTP client for the browser and node.js
- Redis - This is a complete and feature rich Redis client for node.js. It supports all Redis commands and focuses on high performance.
- Response-time - record response time in the response header.
- git clone
- npm install
Once server is running(on desired PORT),
query with the URL http://127.0.0.1:3000/api/search?query=php