# 减肥程序 **Repository Path**: iim_cc/weight-loss-program ## Basic Information - **Project Name**: 减肥程序 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-21 - **Last Updated**: 2026-01-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 减肥追踪器 一个基于 Vue 3 和 SQLite 的减肥记录网页应用。 ## 功能特点 - 🍽️ **饮食记录**:记录每天吃的食物和摄入的热量 - 🏋️ **健身记录**:记录每天的运动项目和消耗的热量 - ⚖️ **体重记录**:记录每天的体重变化 - 📊 **数据概览**:查看每日热量摄入、消耗和净热量 - 📈 **图表展示**:体重变化趋势可视化 ## 技术栈 - Vue 3 - Vite - SQLite (better-sqlite3) - Day.js ## 安装和运行 1. 安装依赖: ```bash npm install ``` 2. 启动开发服务器: ```bash npm run dev ``` 3. 打开浏览器访问 http://localhost:3000 ## 数据库 应用使用 SQLite 数据库存储所有记录数据,数据库文件位于 `src/weight-loss.db`。 数据表结构: - `food_records`:饮食记录 - `exercise_records`:运动记录 - `weight_records`:体重记录