ℹ️ This is a rebuild of Sinanatra's SvelteKit-Kirby personal setup. It uses npm instead of yarn, has slug pages implemented and is already configured for a Netlify deployment. Like the original model, this is work in progress and surely not "bug-free." The original Sinanatra repository can be found here: https://github.com/sinanatra/kirby-sveltekit.
cd path/to/my/folder
git clone https://github.com/ambientmoxie/sveltekit-kirby.git frontend
git clone https://github.com/ambientmoxie/kirby-headless.git backend
rm -rf ./frontend/.git && rm -rf ./backend/.git
cd backend
composer install
composer update
composer start
{url}/panel
cd ..
cd frontend
npm i
npm run dev
npm run build
.
├── backend (headless kirby)/
│ ├── site/
│ │ ├── blueprints/
│ │ │ └── users/
│ │ │ └── api.yml
│ │ ├── plugins/
│ │ │ └── kql
│ │ └── config/
│ │ └── config.php
│ └── index.php
└── frontend (sveltekit app.)/
├── src/
│ ├── lib/
│ │ └── utils/
│ │ └── api.js
│ ├── routes/
│ │ ├── api/
│ │ │ └── query/
│ │ │ └── +server.js
│ │ ├── posts/
│ │ │ └── [slug]/
│ │ │ ├── +page.js
│ │ │ └── +page.svelte
│ │ ├── +page.js
│ │ └── +page.svelte
│ ├── +page.js
│ └── +page.svelte
├── .env
└── svelte.config.js