Phase 0: 專案初始化 - 建立專案結構、環境設定與 LLM 服務模組
This commit is contained in:
34
README.md
Normal file
34
README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# DIT_C
|
||||
|
||||
## 快速開始
|
||||
|
||||
```bash
|
||||
# 安裝依賴
|
||||
pip install -r requirements.txt
|
||||
|
||||
# 設定環境變數
|
||||
cp .env.example .env
|
||||
# 編輯 .env 填入正確的資料庫與 API 資訊
|
||||
|
||||
# 啟動服務
|
||||
python app.py
|
||||
```
|
||||
|
||||
## 測試端點
|
||||
|
||||
- 健康檢查: `GET /health`
|
||||
- LLM 連線測試: `GET /test-llm`
|
||||
|
||||
## 專案結構
|
||||
|
||||
```
|
||||
DIT_C/
|
||||
├── app.py # 主程式入口
|
||||
├── config.py # 設定檔
|
||||
├── models/ # 資料庫模型
|
||||
├── routes/ # 路由模組
|
||||
├── services/ # 商業邏輯 (含 LLM 服務)
|
||||
├── utils/ # 工具函式
|
||||
├── templates/ # HTML 模板
|
||||
└── static/ # 靜態資源
|
||||
```
|
||||
Reference in New Issue
Block a user