feat:初始化项目
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
# Platform Doodle
|
||||
|
||||
Doodle 平台 Monorepo 项目,包含后端 API 和后台管理系统。
|
||||
|
||||
## 项目结构
|
||||
|
||||
```
|
||||
platform-doodle/
|
||||
├── packages/
|
||||
│ ├── api/ # NestJS 后端服务
|
||||
│ └── admin/ # React 后台管理系统
|
||||
└── package.json # 根配置文件
|
||||
```
|
||||
|
||||
## 技术栈
|
||||
|
||||
- **后端**: NestJS
|
||||
- **前端**: React
|
||||
- **包管理**: pnpm
|
||||
- **架构**: Monorepo
|
||||
|
||||
## 快速开始
|
||||
|
||||
### 安装依赖
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
```
|
||||
|
||||
### 开发
|
||||
|
||||
```bash
|
||||
# 启动后端 API
|
||||
pnpm dev:api
|
||||
|
||||
# 启动后台管理系统
|
||||
pnpm dev:admin
|
||||
```
|
||||
|
||||
### 构建
|
||||
|
||||
```bash
|
||||
# 构建后端
|
||||
pnpm build:api
|
||||
|
||||
# 构建前端
|
||||
pnpm build:admin
|
||||
```
|
||||
|
||||
## 子项目
|
||||
|
||||
### API (NestJS)
|
||||
|
||||
后端 API 服务,为小程序和后台管理系统提供接口。
|
||||
|
||||
### Admin (React)
|
||||
|
||||
后台管理系统,用于管理平台数据和配置。
|
||||
|
||||
## 开发规范
|
||||
|
||||
- 使用 pnpm workspace 管理依赖
|
||||
- 共享代码放在 `packages/shared`(如需要)
|
||||
- 遵循各子项目的代码规范
|
||||
Reference in New Issue
Block a user