Initial commit: 1人+2AI协作框架 - 完整目录结构和AI宪法
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
# P01_errlens_app - 环境准备指南
|
||||
|
||||
## 依赖要求
|
||||
- Node.js >= 20.x
|
||||
- npm >= 10.x
|
||||
- 数据库: PostgreSQL 15+
|
||||
|
||||
## 安装步骤
|
||||
```bash
|
||||
# 安装依赖
|
||||
npm install
|
||||
|
||||
# 配置环境变量
|
||||
cp .env.example .env
|
||||
|
||||
# 初始化数据库
|
||||
npm run db:migrate
|
||||
```
|
||||
|
||||
## 环境变量
|
||||
| 变量名 | 说明 | 默认值 |
|
||||
|--------|------|--------|
|
||||
| PORT | 服务端口 | 3000 |
|
||||
| DATABASE_URL | 数据库连接 | postgresql://localhost:5432/errlens |
|
||||
| NODE_ENV | 运行环境 | development |
|
||||
|
||||
## 运行命令
|
||||
```bash
|
||||
# 开发模式
|
||||
npm run dev
|
||||
|
||||
# 生产构建
|
||||
npm run build
|
||||
|
||||
# 运行测试
|
||||
npm test
|
||||
```
|
||||
Reference in New Issue
Block a user