sveltekit-postgres-migration-example Svelte Themes

Sveltekit Postgres Migration Example

SvelteKit Postgres Migration Example

sveltekit-postgres-migration-example

Migration

Create new migration:

This command will generate a new unique migration file by scanning through all git branches, including remote branches.

pnpm migration create some-migration-name

Running migrations:

pnpm migration migrate

Developing

Run postgres server using Docker:

docker compose up -d

Run migration:

pnpm migration migrate

Start a development server:

pnpm dev

# or start the server and open the app in a new browser tab
pnpm dev -- --open

Building

To create a production version of your app:

pnpm build

You can preview the production build with pnpm preview.

To deploy your app, you may need to install an adapter for your target environment.

Top categories

Loading Svelte Themes