Skip to content
 
 

Repository files navigation

Header

Deploy to Cloudflare Workers

reflare-template is a minimal template to kickstart a worker with Reflare and TypeScript.

Installation

  • Generate a new project from reflare-template and install the dependencies, which include reflare, wrangler, typescript, and @cloudflare/workers-types.
npm init cloudflare reflare-app https://github.com/xiaoyang-sde/reflare-template
cd reflare-app
npm install
  • Authenticate wrangler with a Cloudflare account.
npx wrangler login
  • Edit or add route definitions in src/index.ts. Please refer to the documentation of Reflare.

  • Run npm run dev to preview Reflare with a local development server.

  • Run npm run publish to publish Reflare on Cloudflare Workers.

About

Minimal template to kickstart Reflare

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages