跳到正文
封面

Quick Start with ReactPress

Quick Start with ReactPress CLI
Three commands to spin up visitor site, admin, and API

Quick Start

The CLI orchestrates every service in the ReactPress architecture. After a global install, init writes project config and dev starts the API, admin, and default visitor site together.

Prerequisites

  • Node.js 18+ — required for the CLI
  • Docker — recommended; default bundled MySQL runs in a container
  • MySQL — optional; use your own instance instead of Docker

Install and run

npm i -g @fecommunity/reactpress@3
mkdir reactpress-theme-starter && cd reactpress-theme-starter
reactpress init
reactpress dev

When dev is ready, open the URLs printed in the terminal:

ServiceTypical URL
Public sitehttp://localhost:3001
Adminhttp://localhost:3001/admin
API healthhttp://localhost:3002/api/health

Tips

  • Run reactpress with no arguments for the interactive menu.
  • Run reactpress doctor or reactpress status if something does not look right.

评论

填写昵称与邮箱即可评论,无需登录。

推荐阅读