https://github.com/mustofa-id/sveltekit-postgres-migration-example
SvelteKit Postgres Migration Example
https://github.com/mustofa-id/sveltekit-postgres-migration-example
migration-scripts postgres sveltekit
Last synced: 7 months ago
JSON representation
SvelteKit Postgres Migration Example
- Host: GitHub
- URL: https://github.com/mustofa-id/sveltekit-postgres-migration-example
- Owner: mustofa-id
- Created: 2024-05-31T01:43:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-02T03:43:59.000Z (over 1 year ago)
- Last Synced: 2025-07-21T17:43:35.261Z (7 months ago)
- Topics: migration-scripts, postgres, sveltekit
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```bash
pnpm migration create some-migration-name
```
Running migrations:
```bash
pnpm migration migrate
```
## Developing
Run postgres server using Docker:
```bash
docker compose up -d
```
Run migration:
```bash
pnpm migration migrate
```
Start a development server:
```bash
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:
```bash
pnpm build
```
You can preview the production build with `pnpm preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.