- Download the repository.
- Install dependencies with
npm install
.
- Run the application with
npm start
. - Open a web browser and navigate to
http://localhost:3000
.
- make sure redis is run locally at port 6379
-
List hotels by destination id
-
List hotels by hotel ids
- There is a cron job that every 5 minutes to collect the latest data and store it in cache.
- New data added to the dataset will be added to the cache.
- Data that has been removed from dataset will expired after 30 minutes
Run tests with npm test
.
For questions, contact me at [email protected]