- Clone the directory
- Do "npm install" in it to install all the dependencies.
npm install
- run "node server.js" to run the application on port 3000 (link : http://localhost:3000/search)
node server.js
- Here are all the endpoints
- To search by multiple filters on listings "http://localhost:3000/search" method is POST, and body is { "name" : "", "rating" : "", "authorized" : "", "yearExp" : "", "location" : "", "services" : "" } all are optional you can filter your search as you want.
Search Field | Link |
---|---|
All filters | http://localhost:3000/search/name and POST Body |
- To search by one field Example to search by name is like : Fields are
https://drive.google.com/open?id=1cbcweYE1gT22Ll_SXp5ayf9QpMcrs1xr
- index.js file is to scrap, parse and save data to mongodb hosted on mlabs that we don't need to scrap again.