Skip to content

Sulcalibur/kirby-nuxt-starterkit

Β 
Β 

Repository files navigation

Logo of Kirby Nuxt Starter Kit

Kirby Nuxt Starter Kit

Kirby's sample site – but rewritten headless with Nuxt 3!
Explore the kit live Β»


Kirby Nuxt Starterkit

This repository is a port of the Kirby Starter Kit to Nuxt 3. The content is fetched with the nuxt-kql module from a headless Kirby instance.

This is my best practice solution to build a Nuxt 3 based frontend on top of Kirby in headless mode.

Key Features

Usage

Prerequisites

  1. Enable Corepack using corepack enable
  2. Install dependencies using pnpm install
  3. Adapt the relevant environment variables:
# Base URL of the Kirby backend
KIRBY_BASE_URL=
# Token for bearer authentication
# See https://github.com/johannschopplich/kirby-headless-starter#bearer-token
KIRBY_API_TOKEN=

Development

  1. Start the development server using pnpm run dev
  2. Visit localhost:3000

ℹ️ Enable Take Over Mode in Visual Studio Code.

Production

Build the application for production with pnpm run build.

Check out the deployment documentation.

FAQ

Are There Any Drawbacks?

Data is fetched within Suspense components to ensure pre-rendered state for the user and SEO. Thus, the initial server response time is increased by about 50–100 ms for the initial KQL page query. This might be a road blocker for you. You can always pre-render routes.

What's Kirby?

  • getkirby.com – Get to know the CMS.
  • Try it – Take a test ride with our online demo. Or download one of our kits to get started.
  • Documentation – Read the official guide, reference and cookbook recipes.
  • Issues – Report bugs and other problems.
  • Feedback – You have an idea for Kirby? Share it.
  • Forum – Whenever you get stuck, don't hesitate to reach out for questions and support.
  • Discord – Hang out and meet the community.
  • YouTube - Watch the latest video tutorials visually with Bastian.
  • Twitter – Spread the word.
  • Instagram – Share your creations: #madewithkirby.

License

MIT License Β© 2022 Johann Schopplich

About

πŸ’š Kirby's sample site – ported to Nuxt 3 and KirbyQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 61.4%
  • CSS 19.9%
  • TypeScript 16.8%
  • JavaScript 1.6%
  • Shell 0.3%