kirby-sveltekit Svelte Themes

Kirby Sveltekit

šŸ› ļø This repository is my own starterkit for kirby projects with sveltekit

āš ļø 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
    
  2. 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
    
  3. 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
    
  2. 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

Top categories

Loading Svelte Themes