The "Sveltekit Unnamed Stack" is designed to be minimal and extendable and tries to stick to sveltekit core whenever possible, sites
ar built with the sveltekit barebones Skeleton scaffold, while the packages
are built using the sveltekit barebone Library scaffold with some modifications in package.json and tsconfig to make them easier to share
this template is perfect for any kind of project that needs a shared ui and db, you can clone this repo or fork it and add your additional needs like stripe for payments or workos for auth whatever you like
This Turborepo includes the following packages/apps:
@acme/web
: a minimal SvelteKit example app, using @acme/ui
and @acme/db
@acme/ui
: Start of a UI package for the sites using shadcn-svelte@acme/db
: Typesafe db calls using Drizzle & PlanetscaleEach package/app is 100% TypeScript.
In this template, we use
@acme
as a placeholder for package names. As a user, you might want to replace it with your own organization or project name. You can use find-and-replace to change all the instances of@acme
to something like@my-company
or@project-name
.
Note The db package is preconfigured to use PlanetScale If you're using something else, make the necessary modifications to the schema as well as the client and the drizzle config.
Note all package.json are configured to use bun workspaces If you would like to use a different package manager, make the necessary modifications to the Root, @acme/ui, @acme/db and the @acme/web, Additionally if you're planning to use
vitest
, add it to all the projects you wish to use it on and change the test files to use vitest instead ofbun:test
.
if you're using bun make sure you are at the latest version, run the following command:
bun upgrade
# Install dependencies
bun i
# Configure enviorment variables
# There is an `.env.example` in the root directory you can use for reference
cp .env.example .env
# Push the Drizzle schema to the database
bun db:push
To build all apps and packages, run the following command:
cd my-turborepo
bun run build
To develop all apps and packages, run the following command:
cd my-turborepo
bun run dev