This template should help get you started developing with Vite, Svelte and tRPC combo
degit
npx degit github:mishankov/vite-svelte-trpc my-app
Create repo from this template with "Use this template" button above and clone it
npm i
npm run dev
For HMR support use http://localhost:5173/ link by default. tRPC endpoint is http://localhost:5000/
You can also start client and server separately. Use npm run dev:server
to start server and npm run dev:client
to start client
Unit test are living in tests
directory. To execute them, run:
npm run test
E2E UI tests are living in e2e
directory. To execute them, run:
npm run e2e
npm run build
npm run start
dist
- client and server build directorye2e
- E2E teststests
- unit testssrc
lib
trpc.ts
- tRPC client setup to use in browser codeserver
index.ts
- setup for ExpressJS server which combines static files serving and tRPC servertrpc.ts
- setup for tRPC servertest_data.ts
- test data to showcase basic capabilities of this setup