Files
gamegroup2/backend
congsh f99c44f716 feat(bulletin): add group bulletin board (信息公示板)
- Add bulletin_posts and bulletin_reads PocketBase collections with migrations
- Add BulletinPost/BulletinRead types and priority levels (low/normal/high/urgent)
- Add bulletin API (CRUD, read tracking, realtime subscription)
- Add bulletin Pinia store with pinned/normal sections and expiration filtering
- Add BulletinPinned header component for pinned announcements
- Add BulletinBoard tab component with sectioned list layout
- Add BulletinPostCard with priority tags, unread dots, and hover actions
- Add CreateBulletinDialog with title, content, priority, pinned, expiresAt
- Integrate bulletin tab into GroupView with Bell icon and real-time updates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 12:46:35 +08:00
..

Game Group V2 Backend

PocketBase BaaS 服务

启动

# 方式1: Docker
docker-compose up -d

# 方式2: 直接运行
./pocketbase serve --env .env

访问: http://localhost:8090// 管理后台: http://localhost:8090// (首次访问时创建管理员账号)

环境变量

首次启动前,确保 .env 文件包含以下变量:

PB_PORT=8090
PB_DATA=./pb_data
PB_MIGRATIONS=./pb_migrations

数据库集合

数据库集合通过 PocketBase 管理后台手动创建。pb_migrations/ 目录无自动迁移文件。 如需重建数据库,请在管理后台中创建以下集合:users、groups、team_sessions、invitations、games。

开发环境

访问管理后台: http://localhost:8090/_/ 首次访问时需要创建管理员账号。

生产环境

建议固定 PocketBase 版本并配置反向代理 (nginx)。