A sample SvelteKit application built to illustrate the usage of trpc-sveltekit.
See below.
Open it directly in CodeSandbox:
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
To create a production version of this app:
npm run build
You can preview the production build with npm run preview
.
To run the production version of this app:
node build
See trpc-sveltekit for detailed information related to issues you may encounter when setting up with Prisma, superjson, deploying to Vercel, etc.
❌ 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.
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.
The ISC License.