ben-xD / trpc-astro-cloudflare

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:TypeScript 63.8%Language:Astro 27.4%Language:JavaScript 8.8%