I try to gather and maintain, in this skeleton, my standard components configuration that I use in my SvelteKit web application projects.
Components and libraries:
- ✅ SSR SvelteKit with Hydration
- ✅ PostgreSQL server
- ✅ Postgres.js - PostgreSQL client for Node.js
- ✅ Migration powered by graphile-migrate
Tooling:
Methods:
- Deployment based by Docker
Not included:
- No TypeScript support
$ asdf install$ pnpm installStart database engine:
$ docker compose up -d --wait
$ ./scripts/init.sh
$ ./scripts/fixtures.shStart web server:
$ pnpm run devGo to http://localhost:5173/
$ pnpm run migrate:watch
Apply migration in migrations/current.sql and commit:
$ pnpm run migrate:commit
Launch Prettier check:
$ pnpm run prettier-checkApply Prettier fix example:
$ pnpm run prettier src/app.html$ pnpm run eslint