Monorepo scaffold: SvelteKit + Fastify + PostgreSQL + Drizzle ORM.
/
├── shared/ # Types, schemas and constants shared between client and server
├── client/ # SvelteKit frontend
└── server/ # Fastify backend
# 1. Copy .env.example to .env and fill in your values
cp .env.example .env
# 2. Start the database
docker compose up -d
# 3. Install dependencies
npm install
# 4. Generate and run DB migrations (after defining your schemas in shared/)
npm run db:generate --workspace=server
npm run db:migrate --workspace=server
# 5. Start development
npm run dev # SvelteKit (port 5173)
npm run dev:server # Fastify (port 3000)