Files
ai-directory-platform/README.md
T

60 lines
2.8 KiB
Markdown
Raw 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.
# AI Directory Platform
可复用 AI Directory 底座 + 5 个独立网站(monorepo)。
基于 [coolchange-ai/toolso-ai-open](https://github.com/coolchange-ai/toolso-ai-open) 二次开发,
按 `docs/AI-Directory-Platform开发计划与技术设计文档.md` 完成 MVP + V1 能力,
并用 **5 个独立网站** 验证底座的「快速、易用、可用、可靠」。
## 仓库结构
```
packages/core/ @aidir/core —— 底座库(页面组件体 / 业务模块 / 站点外壳工厂 / 种子与工具脚本)
sites/
├── ai-stack/ AI Stack — Classic 目录 → https://ai-stack.opentest.cc
├── launchai/ LaunchAI — Product Hunt 式社区 → https://launchai.opentest.cc
├── the-ai-ledger/ The AI Ledger — Editorial 媒体 → https://the-ai-ledger.opentest.cc
├── devai-tools/ DevAI.tools — 开发者垂直 → https://devai-tools.opentest.cc
└── findai/ findai — 极简搜索 → https://findai.opentest.cc
docs/ 设计文档 + 交付报告
```
五个网站共享同一套 PostgreSQL / Better Auth / Admin(设计文档 §42 验证标准),
各自独立构建、独立部署(各自 `package.json` / `next.config.mjs` / `.env.local`)。
## 快速开始
```bash
bun install
cd packages/core && cp .env.example .env.local && bun run db:push && bun run seed:platform && cd ../..
# 构建 5 个网站(构建时数据库需在线;构建期间不要运行站点)
for s in ai-stack launchai the-ai-ledger devai-tools findai; do
(cd sites/$s && cp -n .env.example .env.local && bun run build)
done
# 一键启动
bash packages/core/scripts/start-all-sites.sh
```
演示账号:`admin@aidirectory.dev`(管理员)/ `alice@demo.dev` 等用户,密码均为 `password123`。
## 底座能力
Tool Directory · 三维发现(Category / Use Case / Audience)· 最佳清单(Best Lists)·
搜索(PostgreSQL)· 七榜 Ranking Engine(Trending 贝叶斯评分等)· 投票 · 评论 · 收藏 ·
工具提交(重复检测)· 认领(Owner 白名单编辑)· 事件分析(CTR/搜索词)·
Programmatic SEO(用例页/受众页/合集页/Alternatives/Vs 对比页 + Schema 全套)·
博客 · Newsletter · 双语 i18n · GitHub/Google OAuth · 邮箱认证 · Admin 后台(8 个模块)·
深浅主题 · Lucide SVG 图标(无 Emoji)。
## 新增一个网站
1. 在 `packages/core/scripts/generate-site.mjs` 的 `SITES` 中加一个条目(品牌/导航/页脚/SEO/端口)。
2. `bun packages/core/scripts/generate-site.mjs <key>` —— 生成独立站点(约 56 个薄路由 + 配置)。
3. `cd sites/<key> && bun install && bun run build && bun run start`。
零 Core 代码修改。
详细验收对照见 `docs/交付报告.md`。