docs: OJ2 后端重写设计文档

将 Django 后端重写为 Bun + TypeScript 的设计方案,含前后端 monorepo
结构、技术选型与分阶段路线。

两处高风险技术假设已实测验证,spike 代码见 docs/spikes/:
- Django pbkdf2 密码哈希可在 Bun 侧验证,存量密码无需重置
- tree-sitter 可用 WASM 在服务端运行,且比现状更易部署

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-06 19:16:57 -06:00
commit ec4f649a2e
4 changed files with 326 additions and 0 deletions

16
.gitignore vendored Normal file
View File

@@ -0,0 +1,16 @@
node_modules/
dist/
build/
*.log
.env
.env.*
!.env.example
.DS_Store
.vscode/
.idea/
# spike 的依赖不入库spike 源码入库
docs/spikes/node_modules/
docs/spikes/bun.lock