The app is deployed to heroku at "https://travolic-task.herokuapp.com".
Head over to "https://travolic-task.herokuapp.com/hotels" and check the usage section for more details.
Clone The Repo:
$ git clone https://github.com/AbdelrahmanSadat/travolic.git
Install Dependencies:
We prefer using Yarn over npm
$ yarn
To run in development:
$ yarn run dev
To run in production:
$ yarn run start
The app runs on port 3000 by default
To run all tests:
$ yarn run test
The app has one route called "/hotels". We can pass optional parameters as a query string to filter the results. These include:
String
String
Numeric
Numeric
ISO8601 Date
ISO8601 Date
One of "name" or "price"
https://travolic-task.herokuapp.com/hotels?lowestPrice=800&date_end=2020-04-10T02:33:18.252Z
localhost:3000/hotels?city=cairo&highestPrice=1000&date_start=2020-04-09T02:33:18.252Z