Skip to content

πŸ› οΈ This repository is my own starterkit for kirby projects with sveltekit

Notifications You must be signed in to change notification settings

sinanatra/kirby-sveltekit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚠️ Work in progress - use at your own risk

Kirby & Sveltekit setup

This repo is my own starterkit for Kirby 3 projects with SvelteKit. Featuring Kirby CMS and Kirby Headless.

Requirements

Installation

  1. In Terminal, go to your production folder:
cd path/to/my/folder
  1. Clone this repository with the submodules
git clone https://github.com/sinanatra/kirby-sveltekit NAME-OF-MY-FOLDER
cd NAME-OF-MY-FOLDER
git clone --depth=1 https://github.com/sinanatra/kirby-headless.git admin/
rm -rf ./admin/.git
  1. Install and run Kirby
  • cd admin
  • composer install
  • composer update
  • composer start
  • Create an API user at {url}/panel.
  1. Separately install dependencies with yarn
cd ../
yarn
  1. Run and build the development environment.
yarn dev
yarn build

Folder structure and important files

.
β”œβ”€β”€β”€ admin
β”‚    β”œβ”€β”€ content
β”‚    β”œβ”€β”€ kirby
β”‚    β”œβ”€β”€ media
β”‚    β”œβ”€β”€ site
β”‚    β”‚   β”œβ”€β”€ blueprints
β”‚    β”‚   β”‚   └── users
β”‚    β”‚   β”‚       β”œβ”€β”€ api.yml
β”‚    β”‚   β”‚       └── default.yml
β”‚    β”‚   β”œβ”€β”€ config
β”‚    β”‚   β”‚   └── config.php
β”‚    β”‚   └── plugins
β”‚    β”‚       └── kql
β”‚    └── vendor
β”‚    
β”œβ”€β”€ src
β”‚    β”œβ”€β”€ components
β”‚    └── routes
β”‚        β”œβ”€β”€ +layout.svelte
β”‚        β”œβ”€β”€ +page.svelte
β”‚        β”œβ”€β”€ +page.js
β”‚        └── api
β”‚            └── query
β”‚                └── +server.js
β”œβ”€β”€ static
β”œβ”€β”€ package.json
└── svelte.config.js

About

πŸ› οΈ This repository is my own starterkit for kirby projects with sveltekit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published