This is a Fresh project.
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.
This project is based on Fresh and requires Deno to run. To install Deno via homebrew on macOS:
# macOS
brew bundle --no-lock
Or the installer which also works on Linux:
# macOS or Linux
curl -fsSL https://deno.land/x/install/install.sh | sh
Or using PowerShell on Windows:
irm https://deno.land/install.ps1 | iex
Add Deno to your path:
export DENO_INSTALL="$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
You will need to have the provided Directus project running first before proceeding with this example.
-
Clone this repo.
-
Install dependencies for this example.
cd fresh
-
Create a
.env
file by copying the provided.env.example
file. -
Start the development server.
deno task start
Your Directus Fresh example is now running at http://localhost:8000.