dekun fff77dac3f Implement three divination modes, learn pages, and PM2 deploy on port 3130.
Add liuyao/bazi/combined flows with shared calc and AI infrastructure, 64-gua learn routes, and update Ubuntu PM2 deployment docs for port 3130.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 20:19:49 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00
2026-06-10 19:59:27 +08:00

知命阁(zhimingge

融合《周易》原文学习与 AI 智能解读的 Web 应用。

代码仓库https://git.bz121.com/dekun/zhimingge.git

功能模块

模块 路由 状态
易经学习 /learn 规划中
六爻算卦 /liuyao 已有基础(首页)
生辰八字 /bazi 规划中
综合测算 /combined 规划中

文档

环境变量

复制 .env.example.env.local 并填写:

OPENAI_API_KEY=你的密钥
OPENAI_BASE_URL=https://op.bz121.com/v1
OPENAI_MODEL=huihui_ai/gemma-4-abliterated:e4b

本地开发

git clone https://git.bz121.com/dekun/zhimingge.git
cd zhimingge
pnpm install
cp .env.example .env.local
pnpm run dev

访问 http://localhost:3000pnpm run dev 默认端口;生产 PM2 为 3130

生产部署(摘要)

cd /opt/zhimingge
cp .env.example .env.local && nano .env.local   # 填写 OPENAI_API_KEYPORT=3130
pnpm install --frozen-lockfile
pnpm run build
pm2 start ecosystem.config.cjs
pm2 save && pm2 startup

服务监听 3130 端口:http://服务器IP:3130

日常更新:bash scripts/deploy.sh

完整步骤见 docs/DEPLOY.md

目录说明

zhimingge/
├── app/              # Next.js 应用
├── components/       # UI 组件
├── content/zhouyi/   # 64 卦 Markdown 原文
├── docs/             # 项目文档
├── lib/              # 工具与数据
├── ecosystem.config.cjs  # PM2 配置
└── scripts/deploy.sh     # 服务器更新脚本

技术栈

Next.js 15 · React 18 · Tailwind CSS · Vercel AI SDK · PM2

S
Description
易经学习、八字、算卦
Readme MIT 6 MiB
Languages
TypeScript 83%
JavaScript 10.3%
Python 2.2%
Shell 2.1%
CSS 1.8%
Other 0.6%