- Node.js (min version v0.11.0)
- Java Runtime Environment (min version 1.8)
- Elasticsearch
- Clone repo
- Run
npm install
: to install all the project dependencies - Start Elasticsearch
- Run
npm run indexing
: to index all the resturand into elasticsearch - Run
npm start
: to start the node server 'll open athttp://localhost:8080
- Run
npm test
: to run the unit tests
GET /currentlyopen
you can also paging by setting the from
and size
parameters http://localhost:8080/currentlyopen?from=0&size=12
resturant.json
: sample data fileindexing.js
: script for indexing the data in elasticsearchroutes/index.js
: script for the api endpointssearch.js
: script for connecting to elasticsearch and make queriespython_scripts/script.py
: script for converting the opening and closing time columns into minutestest/index.js
: script contain unit testsserver.js
: set the server configuration