Skip to content

rezo-labs/cms-with-directus-nextjs

Repository files navigation

CMS with Directus & Next.js

Introduction

This is a simple example of how to use Directus as a headless CMS with Next.js.

Prerequisites

  • Node.js >= 18
  • Yarn
  • Directus pre-installed with CMS collections

Installation

  1. Clone the repository
  2. Install the dependencies:
npm install
  1. Create a .env.local file and add the following environment variables:
API_URL=http://localhost:8055
NEXT_PUBLIC_API_URL=http://localhost:8055
API_TOKEN=your-api-token
  1. Run the development server
npm run dev
  1. Open http://localhost:3000 with your browser to see the result.

License

This project is open source and available under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published