feat: bootstrap backend MVP and architecture docs
This commit is contained in:
26
docs/BACKEND_BOOTSTRAP.md
Normal file
26
docs/BACKEND_BOOTSTRAP.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Backend Bootstrap(memberapi)
|
||||
|
||||
## 1. 環境準備
|
||||
```bash
|
||||
cd member.ose.tw/backend
|
||||
python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -e .
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
## 2. 建立資料表
|
||||
1. 先執行 `member.ose.tw/docs/API_CLIENTS_SQL.sql`
|
||||
2. 再執行 `member.ose.tw/backend/scripts/init_schema.sql`
|
||||
|
||||
## 3. 啟動服務
|
||||
```bash
|
||||
cd member.ose.tw/backend
|
||||
source .venv/bin/activate
|
||||
uvicorn app.main:app --host 127.0.0.1 --port 8000 --reload
|
||||
```
|
||||
|
||||
## 4. 快速驗證
|
||||
```bash
|
||||
curl -sS http://127.0.0.1:8000/healthz
|
||||
```
|
||||
Reference in New Issue
Block a user