feat: add backend CI/CD deployment

This commit is contained in:
hailt 2026-11-12 21:32:31 +07:00
parent 8d40cff227
commit 7c2e6ed571
21 changed files with 269 additions and 41 deletions

View file

@ -1,4 +1,4 @@
# danable API reference
# danagble API reference
Base URL: `http://localhost:8000/api/v1` (prefix from `config.yaml` `app.api_prefix`).
Interactive docs: `http://localhost:8000/docs`.
@ -35,7 +35,7 @@ Interactive docs: `http://localhost:8000/docs`.
```json
{
"user": { "id": "...", "name": "Admin", "email": "admin@danable.local",
"user": { "id": "...", "name": "Admin", "email": "admin@danagble.local",
"avatarInitials": "A", "avatarColor": "#3B82F6",
"role": "admin", "status": "active",
"isOnline": true, "lastActive": "..." },
@ -179,7 +179,7 @@ into `action_events` (requeued on DB failure, never lost, never blocks).
B=http://localhost:8000/api/v1
curl -s -X POST $B/admin/init-db
TOK=$(curl -s -X POST $B/auth/login -H 'Content-Type: application/json' \
-d '{"email":"admin@danable.local","password":"Admin123!"}' \
-d '{"email":"admin@danagble.local","password":"Admin123!"}' \
| python3 -c "import sys,json; print(json.load(sys.stdin)['accessToken'])")
H="Authorization: Bearer $TOK"
PID=$(curl -s -X POST $B/projects -H "$H" -H 'Content-Type: application/json' \