Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Latest commit

 

History

History

sveltekit

Directus SvelteKit Example

This is a SvelteKit project bootstrapped with create-svelte.

ℹ This example uses @sveltejs/kit version 1.0.0-next.350.

Open in CodeSandbox

Open in StackBlitz

Note: This example folder is a standalone frontend, which is why it will still need Directus running to work, the CodeSandbox and StackBlitz links only pull the example folder as is, you will still need Directus running somewhere to make it work, such as a Cloud instance, or self hosted.

📌 Prerequisites

You will need to have the provided Directus project running first before proceeding with this example.

🚀 Getting Started

  1. Clone this repo.

  2. Install dependencies for this example.

    cd sveltekit
    npm install
  3. Create a .env file by copying the provided .env.example file.

  4. Start the development server.

    npm run dev

    Your Directus SvelteKit example is now running at http://localhost:3000.

🔗 Links

Directus

SvelteKit