Look at the Nuxt documentation to learn more.
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun installStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run devBuild the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run previewCheck out the deployment documentation for more information.
Set the following environment variables for local development:
NUXT_PUBLIC_DIRECTUS_URL=https://your-directus-instance.example
NUXT_PUBLIC_SITE_URL=http://localhost:3000If you don't want to allow public testimonial submissions from the Directus public role, add a server token:
NUXT_DIRECTUS_TOKEN=your-directus-static-tokenThe testimonial page expects a testimonials collection in Directus with these fields:
name string
subject string
quote text
status string
Published testimonials are displayed on the site. New submissions are created as draft so they stay subject to approval.