Skip to content

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

License

Notifications You must be signed in to change notification settings

calvin-mclain/trpc-sveltekit-example

 
 

Repository files navigation

😎tRPC-SvelteKit-Example

License

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

❤️🇺🇦

See below.

CodeSandbox

Open it directly in CodeSandbox:

Open in CodeSandbox

Screenshot

trpc-sveltekit-example

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 73.9%
  • TypeScript 22.3%
  • JavaScript 2.5%
  • HTML 1.3%