create-oak-cloudflare-worker
v1.5.1
Published
npm init template for a Cloudflare Workers application
Downloads
164
Maintainers
Readme
create-oak-cloudflare-worker
Starter template to develop a Cloudflare Workers application with @oak/oak
and @dklab/oak-routing-ctrl
.
Read more:
How to use this template
npm create oak-cloudflare-worker@latest
Example Deployment
A deployment is available for demo at the following URL: https://oak-routing-ctrl-cloudflare.dklab.workers.dev/swagger
curl \
-H"x-foo: lorem" \
-H"x-bar: ipsum" \
-H"Content-Type: application/json" \
https://oak-routing-ctrl-cloudflare.dklab.workers.dev/echo/world\?name=dolor -d'{"raz":"maz"}'
# output
{"query":{"name":"dolor"},"body":{"raz":"maz"},"param":{"name":"world"}}
Please keep in mind that there's no uptime guarantee for the deployment above, so it might be unavailable from time to time due to exceeding traffic allowances.