sveltekit-turso-drizzle
sveltekit-turso-drizzle copied to clipboard
SvelteKit Turso Drizzle
trafficstars
SvelteKit Turso Drizzle
Setup Turso
Follow the steps to setup your Turso development database (Using Turso for dev and prod seems like a good idea).
Add a .env file with the correct values
Developing
Once you've created a project and installed dependencies with pnpm install, start a development server:
pnpm run dev
# or start the server and open the app in a new browser tab
pnpm run dev -- --open
Building
To create a production version of your app:
pnpm run build
You can preview the production build with pnpm run preview.
To deploy your app, you may need to install an adapter for your target environment.
Generate SQL migrations
pnpm run drizzle-generate
Run SQL migrations
pnpm run migrate