diff --git a/backend/.env.example b/backend/.env.example index cfdd96b..ad609a9 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1,6 +1,6 @@ APP_NAME=财务大模型智能问答客服系统 ENVIRONMENT=development -DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@127.0.0.1:5432/finance_ai +DATABASE_URL=postgresql+psycopg://finai:finai@127.0.0.1:5432/finai JWT_SECRET_KEY=change-me-in-production JWT_EXPIRE_MINUTES=480 SMS_PROVIDER=mock diff --git a/backend/README.md b/backend/README.md index c7560c7..fa6ed91 100644 --- a/backend/README.md +++ b/backend/README.md @@ -12,7 +12,7 @@ python -m uvicorn app.main:app --reload --port 8000 默认会使用 `sqlite:///./finance_ai.db`。生产环境请复制 `.env.example` 为 `.env`,并配置: ```env -DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@127.0.0.1:5432/finance_ai +DATABASE_URL=postgresql+psycopg://finai:finai@127.0.0.1:5432/finai JWT_SECRET_KEY=replace-with-secret ``` diff --git a/backend/pyproject.toml b/backend/pyproject.toml index dce98d1..d0da474 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "finance-ai-qa-backend" +name = "finai-backend" version = "0.1.0" description = "FastAPI backend for finance AI intelligent Q&A customer service system." requires-python = ">=3.11" diff --git a/deploy/.env.example b/deploy/.env.example index b8a328a..762a5b0 100644 --- a/deploy/.env.example +++ b/deploy/.env.example @@ -1,6 +1,6 @@ -POSTGRES_DB=finance_ai -POSTGRES_USER=finance_ai -POSTGRES_PASSWORD=finance_ai -DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@postgres:5432/finance_ai +POSTGRES_DB=finai +POSTGRES_USER=finai +POSTGRES_PASSWORD=finai +DATABASE_URL=postgresql+psycopg://finai:finai@postgres:5432/finai JWT_SECRET_KEY=change-me-in-production ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index f307a7c..d074746 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -2,15 +2,15 @@ services: postgres: image: postgres:16 environment: - POSTGRES_DB: ${POSTGRES_DB:-finance_ai} - POSTGRES_USER: ${POSTGRES_USER:-finance_ai} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-finance_ai} + POSTGRES_DB: ${POSTGRES_DB:-finai} + POSTGRES_USER: ${POSTGRES_USER:-finai} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-finai} ports: - "5432:5432" volumes: - pg_data:/var/lib/postgresql/data healthcheck: - test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-finance_ai} -d ${POSTGRES_DB:-finance_ai}"] + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-finai} -d ${POSTGRES_DB:-finai}"] interval: 5s timeout: 3s retries: 20 @@ -24,7 +24,7 @@ services: build: context: ../backend environment: - DATABASE_URL: ${DATABASE_URL:-postgresql+psycopg://finance_ai:finance_ai@postgres:5432/finance_ai} + DATABASE_URL: ${DATABASE_URL:-postgresql+psycopg://finai:finai@postgres:5432/finai} JWT_SECRET_KEY: ${JWT_SECRET_KEY:-change-me-in-production} ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-http://localhost:5173,http://127.0.0.1:5173,http://localhost} SMS_PROVIDER: mock diff --git a/deploy/setup-backend.sh b/deploy/setup-backend.sh index 5063e1e..626e606 100644 --- a/deploy/setup-backend.sh +++ b/deploy/setup-backend.sh @@ -32,7 +32,7 @@ DB_USER="${DB_NAME}" DB_PASS="${DB_PASS:-}" FORCE_ENV="${FORCE_ENV:-0}" -SERVICE_NAME="finance-ai-backend" +SERVICE_NAME="finai-backend" SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service" # ─── 工具函数 ────────────────────────────────────────────── diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 65c927e..b61f1a0 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,11 +1,11 @@ { - "name": "finance-ai-frontend", + "name": "finai-frontend", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "finance-ai-frontend", + "name": "finai-frontend", "version": "0.1.0", "dependencies": { "marked": "^18.0.5", diff --git a/frontend/package.json b/frontend/package.json index 7cbb2ba..1383e41 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,5 +1,5 @@ { - "name": "finance-ai-frontend", + "name": "finai-frontend", "private": true, "version": "0.1.0", "type": "module", diff --git a/miniapp/project.config.json b/miniapp/project.config.json index 823bde3..79545b1 100644 --- a/miniapp/project.config.json +++ b/miniapp/project.config.json @@ -46,7 +46,7 @@ "compileType": "miniprogram", "libVersion": "3.16.2", "appid": "wx8b0db4bf9ae7d778", - "projectname": "finance-ai-miniapp", + "projectname": "finai-miniapp", "condition": {}, "editorSetting": { "tabIndent": "insertSpaces",