Docs / Development

开发环境

当前项目三端开发环境: Flutter 客户端、Vue 管理后台、Go 后端服务。

Requirements

组件要求
Node.js>=20.19.0
pnpm>=8.8.0
Gogo.mod 声明 1.26.2
Flutter/Dartpubspec.yaml 声明 Dart SDK ^3.10.8
Docker需要 Docker Compose
MySQL当前 Compose 使用 mysql:8.4
Redis当前 Compose 使用 redis:7-alpine

Example

# 后端
cd backend-src/backend
go mod download
go run ./cmd/server -config ./config

# 管理后台
cd admin-src/admin
corepack enable
corepack prepare [email protected] --activate
pnpm install
pnpm dev

# Flutter 客户端
cd app-src/app
flutter pub get
flutter run -d windows --dart-define=API_BASE_URL=http://localhost:8081

FAQ

本地后端端口是多少?

本地开发直接跑 8081;只有线上宿主机才使用 127.0.0.1:18081 的固定映射。

三端可以分开开发吗?

可以。后端先跑起来,管理后台与 Flutter 客户端都通过 API 地址指向它,互不阻塞。

Ready to try Yihuichang?

Download the client to get started, or contact the team about self-hosting, OEM and partnerships.