Skip to content

A starter template that uses tRPC, tRPC Panel running on Cloudflare Pages

Notifications You must be signed in to change notification settings

ben-xD/trpc-astro-cloudflare

Repository files navigation

tRPC, Astro and Cloudflare Pages Template

Modified from the basics template (npm create astro@latest -- --template basics) to add tRPC, tRPC-panel, running on Cloudflare Pages.

Example:

Known issues

  • The list of users does not update. You need to refresh the page.
  • Jetbrains Webstorm IDE has buggy astro integration (even with plugin installed).

Usage

  • Run pnpm prebuild to generate the tRPC panel UI.
  • Run pnpm dev to run dev server, and open the URL provided.

Database migrations

  • Create migration file: run pnpm migration
  • Run on database: e.g. run wrangler d1 execute DB --file migrations/0000_closed_harrier.sql --local

About

A starter template that uses tRPC, tRPC Panel running on Cloudflare Pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published