这是一个基于本地 Markdown 文件的任务管理与自动化报告工具,支持 CLI 脚本和 Web 在线编辑。
frontend/: 基于 Next.js 的在线编辑器应用。backend/: 基于 FastAPI 的后端 API 及原始脚本。records/: 存放每日 Markdown 任务记录。reports/: 存放自动生成的周报、月报、年报。
确保已在虚拟环境中安装依赖:
pip install -r requirements.txt
python backend/main.pyAPI 将运行在 http://localhost:8000。
cd frontend
npm install
npm run dev启动后访问 http://localhost:3000 即可开始在线编辑。
你仍然可以手动运行脚本:
- 创建今日记录:
bash backend/scripts/new_day.sh - 手动生成报告:
python3 backend/scripts/generate_report.py --type weekly
- 访问
/api/records可以获取所有历史记录。 - 在线编辑并点击“保存”,内容会实时同步到本地
records/目录。 - 点击“生成报告”,汇总结果会保存到
reports/目录。