#
Setup Guide
Follow these steps to run the project locally.
---
##
Storyblok
- Create stories: ai-content-assistant, content1, content2, content3.
- Fill the body field with the content provided.
- Save → Publish each.
---
##
Demo Frontend (Next.js)
```bash
cd demo
npm install
npm run dev
# open http://localhost:3000/ai-content-assistant
```
---
##
Backend (Express + AI)
```bash
cd ../backend
cp .env.example .env # add OpenAI key
npm install
npm run dev
# runs on http://localhost:5001
```
---
##
Plugin (React + Vite)
```bash
cd ../plugin
npm install
npm run dev
# plugin runs on http://localhost:8080
```
---
##
Env variables
- NEXT_PUBLIC_STORYBLOK_TOKEN → Public API token
- NEXT_PUBLIC_STORYBLOK_VERSION → draft or published
- NEXT_PUBLIC_BACKEND_URL → http://localhost:5001
---
Once setup is complete, continue to [Plugin Usage Guide](/content2).