Build a React Support Desk with YunCMS: Roles, Relations and AI
Description and use
Build a React support desk with YunCMS: defining data models, roles, and AI summarization.
Problem
Design a support desk that enforces explicit data models, relationships, and role‑based permissions while generating AI summaries.
Outcome
The example demonstrates how to build a support desk with explicit data modeling, role‑based access control, and AI summarization using YunCMS and React.
Workflow
- Set up Node.js 24, npm 11, MySQL 8 and an empty database named yuncms_example_dev_support
- Clone the example repo and run
npm ci, copy.env.exampleto.env.local, set permissions - Run
npm run setupandnpm run cmsto seed demo accounts and schema - Start the React dev server with
npm run devand access Studio at http://127.0.0.1:3058 - Create support requests via the UI, ensuring fields like title, message, priority, estimate_hours, due_date, context, and category_id are supplied
- Use the API to fetch requests with related category names and comments, respecting role permissions
- Test role boundaries by logging in as Administrator, Support Agent, Read‑only Viewer, AI Processor, and Public
- Verify AI summaries are generated by YunCMS AI Automations and displayed in the detail panel
Evidence
YunCMS is a MySQL CMS/backend developed by Yunsoft.
The example uses its native authentication, REST API, relations and role-based permissions.
Summaries are generated by native YunCMS AI Automations, rather than a separate privileged backend.
Create an empty MySQL database called yuncms_example_dev_support.
React runs at http://127.0.0.1:5186; Studio runs at http://127.0.0.1:3058.
- Record date: 2026-10-13T15:41:06.608Z