nomadro/apps/coffee/README.md
Eric ffa456afdf Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack.
Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 02:25:05 +08:00

38 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Coffeechat booking — Cal.com-domain secondary-dev
读开源 **Cal.com** 域模型后自研,挂游民社区 `/social/coffeechat`(Fair Use;非 iframe / 非原样塞 upstream UI):
| Cal.com 概念 | Nomadro | API |
|---|---|---|
| User / Host | 主持人公开页 | `GET /api/coffee/v1/hosts/:user` |
| EventType | 咖啡聊 / 视频聊等时长类型 | `.../event-types/:slug` |
| Schedule + Availability | 周内可约窗口(分钟) | `.../schedule` |
| availableSlots | 按日生成空档 | `.../slots?day=` |
| Booking + Attendee | 预约确认 / 取消 | `POST /bookings` |
## 本地
```bash
pnpm coffee:fetch # 可选对照 → apps/coffee/upstream/cal.com
pnpm dev:coffee-api # uvicorn coffee_main:app :8024
pnpm dev # http://localhost:3000/social/coffeechat
```
## 产品路由
| 路由 | 说明 |
|---|---|
| `/social/coffeechat` | 品牌落地 · 主持人列表 |
| `/social/coffeechat/:user` | 事件类型列表 |
| `/social/coffeechat/:user/:slug` | 选日 → 时段 → 确认 |
| `/social/coffeechat/manage` | 演示主持人日程与预约 |
| `/social/coffeechat/bookings/:id` | 预约详情 / 取消 |
数据:`data/coffee/coffee.sqlite3`。咖啡馆地图仍见 `/social/places?tab=cafes`。
## 反模式
- iframe / 嵌入官方 Cal.com
- 跳 `cal.` 二级域
- 把整包 Cal monorepo UI 硬塞进 Next