Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (23 loc) · 1.19 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.19 KB

Key Generation Service (KGS)

Requirements

  • Wrangler CLI for Cloudflare Workers deployment
  • Miniflare CLI for testing cron trigger locally

Installation

npm ci

Development

To test out the cron trigger locally, run the following:

# At terminal 1
miniflare

# At terminal 2
curl "http://localhost:8787/.mf/scheduled"

Note that no actual keys will be created on your actual Cloudflare KV namespaces (not even preview). By default, KV data is stored in memory.

Deployment

The deployment of this project is done using GitHub Actions CI/CD. For more details, check out kgs.yml.

Alternatively, to publish any new changes to your Cloudflare Worker, run wrangler publish.

Before publishing your code you need to edit wrangler.toml file and add your Cloudflare account_id - more information about configuring and publishing your code can be found in the documentation.

References