To add a new third-party script, you can either create a new issue or create a fork of this repository with an addition to src/watcher/DailyTrigger/scripts.json
:
id
: a unique identifier for the script (kebab-case)name
: a human readable name for your scripturl
: the initial request URLinitialisationHtml
: the HTML code required to run the script
...then open a pull request
For local development, you'll need to run a number of services (depending on what you're working on)
npm install
npm start -w ui
UI will be available at http://localhost:1234/
Start a local DB container & seed with test data from container-config/mongo/initdb/init-db.js
:
docker-compose up -d
Start the function app:
npm start -w watcher
Manually trigger the function:
curl -v -H "Content-Type:application/json" --data {} http://localhost:7071/admin/functions/DailyTrigger
Shutdown DB container when you're done:
docker-compose down