content1

# undefined Setup Guide

Follow these steps to run the project locally.

---

## undefined Storyblok

- Create stories: ai-content-assistant, content1, content2, content3.

- Fill the body field with the content provided.

- Save → Publish each.

---

## undefined Demo Frontend (Next.js)

```bash

cd demo

npm install

npm run dev

# open http://localhost:3000/ai-content-assistant

```

---

## undefined Backend (Express + AI)

```bash

cd ../backend

cp .env.example .env # add OpenAI key

npm install

npm run dev

# runs on http://localhost:5001

```

---

## undefined Plugin (React + Vite)

```bash

cd ../plugin

npm install

npm run dev

# plugin runs on http://localhost:8080

```

---

## undefined Env variables

- NEXT_PUBLIC_STORYBLOK_TOKEN → Public API token

- NEXT_PUBLIC_STORYBLOK_VERSIONdraft or published

- NEXT_PUBLIC_BACKEND_URLhttp://localhost:5001

---

undefined Once setup is complete, continue to [Plugin Usage Guide](/content2).