Files
plm-backend-service/CONFIGURATION_CHECKLIST.md
admin 0efeaff88e feat: PLM backend services - auth, user, project, config services
Sprint 0 backend development complete:
- auth-service: JWT authentication, login/logout, token refresh
- user-service: User CRUD, profile management, RBAC
- project-service: Project lifecycle, member management
- config-service: System configuration, audit logging

Technical stack:
- FastAPI async framework
- SQLAlchemy 2.0 async ORM
- JWT authentication with python-jose
- bcrypt password hashing
- Pydantic v2 validation

API endpoints: 31 total
Code lines: 3,551
2026-03-31 00:08:52 +08:00

2.3 KiB

PLM系统配置清单

已完成配置

1. 系统环境

  • 检查磁盘空间 (125GB可用)
  • 检查内存 (30GB)
  • 确认Python 3.10.12
  • 确认Node.js 22.22.1
  • 确认Docker 29.1.3

2. 目录结构

  • ~/plm-system/app/
  • ~/plm-system/nginx/
  • ~/plm-system/node/
  • ~/plm-system/postgresql/
  • ~/plm-system/python/
  • ~/plm-system/redis/

3. Nginx配置

  • nginx.conf 主配置
  • aifly.ren.conf 域名配置
  • index.html 默认首页
  • SSL目录准备

4. Python/FastAPI

  • main.py 主应用
  • requirements.txt 依赖
  • .env.example 环境变量模板
  • start.sh 启动脚本

5. Node.js

  • package.json 依赖配置

6. PostgreSQL

  • Docker Compose配置
  • 数据库初始化配置

7. Docker

  • docker-compose.yml
  • 服务编排配置

8. 脚本

  • install.sh 安装脚本
  • test-env.sh 测试脚本

9. 文档

  • README.md
  • INSTALL_REPORT.md
  • CONFIGURATION_CHECKLIST.md

待完成配置

系统级 (需要sudo)

  • 安装PostgreSQL 14
  • 安装Nginx
  • 安装Redis
  • 配置防火墙规则
  • 创建systemd服务
  • 将用户加入docker组

应用级

  • 创建Python虚拟环境
  • 安装Python依赖
  • 安装Node.js依赖
  • 配置环境变量(.env)
  • 初始化数据库

域名/SSL

  • 配置DNS解析 (aifly.ren → 192.168.3.36)
  • 申请SSL证书
  • 配置HTTPS

部署

  • 启动PostgreSQL
  • 启动Nginx
  • 启动应用服务
  • 配置自动启动

🔧 一键部署命令

# 1. 运行安装脚本
sudo ~/plm-system/install.sh

# 2. 或者使用Docker Compose
cd ~/plm-system && docker-compose up -d

# 3. 测试环境
~/plm-system/test-env.sh

📊 配置验证

# 检查服务状态
curl http://localhost/health
curl http://localhost/api/config

# 检查端口
netstat -tuln | grep -E '80|443|5432|8000|6379'

# 检查进程
ps aux | grep -E 'nginx|postgres|python|node'

📝 关键信息

项目
域名 aifly.ren
服务器IP 192.168.3.36
安装路径 ~/plm-system/
数据库名 plm_database
数据库用户 plm_admin
API端口 8000
前端端口 3000

生成时间: 2024-03-20 15:26:00