DispatchedJs - CLI
This is a TypeScript helper library for node.js server side to integrate Dispatched into your application.

Usage
When developing locally, you can use the Dispatched CLI to start a local server that will receive webhook callbacks.
- Install the CLI globally:
npm install -g @dispatchedjs/cli
- Start the local server:
dispatchedjs listen --secret="any-webhook-secret-for-local-dev" --forward="http://localhost:3000/path/to/webhook/endpoint" --port=3000
Options:
--secret
is the secret you want to use to verify the webhook requests. For security reasons, it is recommended to use a different secret than the one you use in production (you can use something simple like "abc123" for local development).--forward
is the URL that Dispatched will send the webhook requests to.--port
is the port you want the server to listen on. It defaults to 3100.
NOTE: Scheduled jobs will be processed immediately when using the local server.
License
MIT