A message with the link to this document
The list of know proviver unique ids, which can be used in the /provider/:id/* endpoints
Where:
idis a known provider id from the/providersendpointhostnameis the id of a company, as defined when registered on at the provider's services (often a "slugified version" of the company's name).
This endpoint returns a list of jobs
The know providers, and the job serialization come from https://gitlab.com/joblist/job-board-providers
Examples:
- https://api.joblist.today/providers/greenhouse/greenhouse
- https://api.joblist.today/providers/lever/lever
Install dependencies (npm, wrangler, hono):
npm installRun the development server
npx wrangler dev src/index.tsTo receive stripe webhooks, don't forget to set the .dev.vars values, and:
ngrok http 8787 --hostname lively-promoted-lemming.ngrok-free.appIn Stripe add the webhook to https://lively-promoted-lemming.ngrok-free.app/webhooks/stripe
To test the webhooks sending from stripe, need to install and login the stripe cli.
while developing to send a test webhook, use:
stripe trigger payment_intent.succeeded
stripe listen --forward-to https://lively-promoted-lemming.ngrok-free.app/webhooks/stripeshould only deploy with CI/CD, for versioning purpose
The repo si bound the the main branch on cloudflare which will rebuild on new commits.
For example to deploy version 0.0.1 of the api:
- in
package.jsonbumbversionto0.0.1, then push this as a comit - in gitlab UI create a new tag
v0.0.1 - this will trigger the
deploy_apijob (see file.gitlab-ci.yml), which will publish the api to cloudflare workers (using wrangler)
ENV variables needed in gitlab ci:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_ID
note: these variables are defined on the gitlab organisation level and only availabe on protected branches (
main) and tags (v*).
Docs:
- https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/
- https://developers.cloudflare.com/workers/wrangler/configuration/
npx wrangler publish ./src/index.tstld: do not add with the cloudflare DNS UI, but the cloudflare worker toml config file, as we're having our site DNS zone on cloudfalre (joblist.today)
Not yet setup, see here: