Building a Payload-style CMS that lives inside your Nuxt app
说明与用途
Easy CMS 让 Nuxt 和 Next.js 开发者在单个应用中添加完整的数据库后端 CMS 与 Vue 管理界面。
问题
Clients building sites in Vue or React need a back office for editors in Thai and English, but existing Nuxt solutions are Git‑based or require separate servers.
结果
Easy CMS enables Nuxt and Next.js developers to add a fully featured, database‑backed CMS with a Vue admin UI, typed Local API, and REST API, all within a single app deployment.
工作流
- 1. Run
npm create easy-cms@latest npm run devinside an existing Nuxt 4 or Next.js 15+ app. - 2. The command installs packages, writes
easy-cms.config.tsand.env, and wires the framework. - 3. Open
/adminto create the first admin user. - 4. Define collections in
easy-cms.config.ts(e.g., apostscollection). - 5. Use the Local API in server routes (
useEasyCMS().find('posts')). - 6. Deploy the single app; the admin and APIs are served from the same server.
证据
Easy CMS runs inside your app's server. You describe your content in easy-cms.config.ts, and you get an admin at /admin, a typed Local API for your pages and a REST API at /api/cms.
The command detects Nuxt or Next.js and installs the packages. It writes easy-cms.config.ts with a sample posts collection, puts a random secret in .env, and wires up the framework.
The admin covers what editors usually ask for: drafts and scheduled publishing, version history with restore, live preview, a media library with folders, roles set in the admin, single sign-on, an audit log, backups and a ⌘K command palette.
- 记录日期: 2026-10-21T06:41:22.408Z