- Node.js >= 8
- MongoDB >= 3
- Dotenv files:
.env.productionand/or.env.development
$ yarn install
$ yarn start # yarn dev for developmentMONGODB_URI(string): MongoDB URICRAWLER_ADDRESS(string): Address of crawler service
Just for testing
iam:"/"
Get all active watches
Array of objects:
id(string): ID of the watchinterval(positive integer): Number of seconds between executionspayload(object): Payload passed to the crawler
Add a new watch
interval(positive integer): Number of seconds between executionspayload(object): Payload passed to the crawler
success(boolean): Status
Get the active watch with
id
id(string): ID of the watch
id(string): ID of the watchinterval(positive integer): Number of seconds between executionspayload(object): Payload passed to the crawler
Delete/disable the active watch with
id
id(string): ID of the watch
success(boolean): Status