svelte-trpc Svelte Themes

Svelte Trpc

Boilerplate for Svelte and tRPC

😎tRPC-SvelteKit-Example

A sample SvelteKit application built to illustrate the usage of trpc-sveltekit.

❤️🇺🇦

See below.

CodeSandbox

Open it directly in CodeSandbox:

Screenshot

Developing

Once you've installed the dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of this app:

npm run build

You can preview the production build with npm run preview.

Running the production version

To run the production version of this app:

node build

Recipes, caveats, gists 🛠

See trpc-sveltekit for detailed information related to issues you may encounter when setting up with Prisma, superjson, deploying to Vercel, etc.

Warning❗❗❗

❌ This example won't work on Vercel because it's set up to use a local SQLite database.
✔️ trpc-sveltekit, however, does work on Vercel.

Stand with Ukraine

On 24th of February 2022 Russia unlawfully invaded Ukraine. This is an unjustified, unprovoked attack on the sovereignty of a neighboring country, but also an open affront to international peace and stability that has the potential to degenerate into a nuclear event threatening the very existence of humanity. I am an EU (Romanian) citizen, but I am doing everything in my power to stop this madness. I stand with Ukraine. The entire Svelte community ❤️🇺🇦. Here's how you can show your support.

License

The ISC License.

Top categories

Loading Svelte Themes