The vision with this repo is to make a starter kit which has all the best practices of t3 architecture (except instead of nextjs, use sveltekit )
Check the url http://localhost:3002/api/trpc/greetings.greeting
Used
- https://icflorescu.github.io/trpc-sveltekit
- https://javascript.plainenglish.io/how-to-use-sveltekit-trpc-3b2e2271f082
This Turborepo includes the following packages/apps:
docs
: a svelte-kit appweb
: another svelte-kit app with tailwindcss and a basic page to perform crud using prismadatabase
: prisma database setup (for the example, using sqlite)ui
: a stub Svelte component library shared by bothweb
anddocs
applicationseslint-config-custom
:eslint
configurations (includeseslint-plugin-svelte
andeslint-config-prettier
)
Each package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
Run the following command:
npx degit vercel/turbo/examples/with-svelte with-svelte
cd with-svelte
pnpm install
git init . && git add . && git commit -m "Init"