🚀 The template to deploy Reflare to Cloudflare Workers. The src/index.ts file contains the route definitions of Reflare. The documentation of Reflare can be found here.
Install wrangler CLI and authorize wrangler with Cloudflare account.
npm install -g wrangler
wrangler loginGenerate a new project from reflare-template and install the dependencies.
npm init cloudflare reflare-app https://github.com/xiaoyang-sde/reflare-template
cd reflare-app
npm installEdit or add route definitions in src/index.ts. Please read the examples and route definition section below for more details.
- Run
npm run devto preview Reflare with local development server provided by Miniflare. - Run
npm run deployto publish Reflare on Cloudflare Workers.
