
Architecture in Detail
ReactPress separates content management (NestJS + MySQL + admin) from presentation (visitor themes). The REST API is the contract between both sides.
Request flow (headless mode)
- Editor publishes an article in the admin console.
- NestJS persists content to MySQL and exposes it at
GET /api/article/:id. - Theme Starter fetches via
themeApiduring SSR and renders App Router pages with ISR. - Browser receives HTML; subsequent navigations hydrate client components from the toolkit.
Monorepo packages
- CLI — project lifecycle and local orchestration
- Server — NestJS modules for articles, categories, tags, pages, comments, knowledge, media
- Client — bundled admin and default visitor UI
- Toolkit —
@fecommunity/reactpress-toolkitfor third-party themes - Theme Starter — reference headless implementation (this repository)
Headless entry point
Run reactpress dev --api-only when you only need the API and connect a custom theme such as Theme Starter with pnpm dev.
Documentation: reactpress.surge.sh
评论
填写昵称与邮箱即可评论,无需登录。