Skip to content

Build an app template for React Router v7 and Better Auth and Hono to run on Cloudflare Workers.( (better-auth, shadcn, stripe, resend))

License

Notifications You must be signed in to change notification settings

mockkey/flarekit

Repository files navigation

React Router v7 with Better Auth

Build an app template for React Router v7 and Better Auth and Hono to run on Cloudflare Workers.

Stack

  • Authentication:Better auth
  • ORM: Drizzle
  • DB: D1
  • Framework: Hono and rr7
  • Language: TypeScript
  • Package Manager: pnpm
  • payment: stripe

Getting Started

Install the dependencies:

git clone https://github.com/panwenwei/cloudflare-workers
pnpm install

Modify config

// wrangler.toml
[vars]
MY_VAR = "My Value"
BETTER_AUTH_SECRET = ""
BETTER_AUTH_URL = ""
GITHUB_CLIENT_ID = ""
GITHUB_CLIENT_SECRET = ""
RESEND_API_KEY = ""
IMAGE_URL = ""
STRIPE_SECRET_KEY = ""
STRIPE_WEBHOOK_SECRET = ""
STRIPE_PRICE_ID = ""

[[d1_databases]]
binding = "DB"
database_name = ""
database_id = ""
migrations_dir = ""

Development

pnpm run  db:generate
pnpm run db:local
pnpm run dev

deploy

pnpm run deploy

About

Build an app template for React Router v7 and Better Auth and Hono to run on Cloudflare Workers.( (better-auth, shadcn, stripe, resend))

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published