# WorkBeat **Repository Path**: mister-white/work-beat ## Basic Information - **Project Name**: WorkBeat - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-18 - **Last Updated**: 2026-06-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # WorkBeat A **Personal Laboratory for New Media Operations** — Building the feedback loop of Input → Output → Effect → Learning, helping operators precipitate success patterns and replicate effective practices. ## Introduction WorkBeat is an **effect-feedback tool** designed for small new media operation teams. It's not a "record how much work I did" workload tracking tool, but rather an "record what practices work" effect experimentation tool. **Core Value**: Shift users from "how much time I spent" to "what effect I got", from "drudgery feeling" to "growth feeling". ### Target Users - **Team Size**: 4-person new media operation team - **Work Scenarios**: Multi-platform operation (WeChat Official Account, Video Account, Douyin, Xiaohongshu, etc.) - **Core Need**: Want to know "which practices work well" to replicate success ### Core Features | Feature | Description | |---------|-------------| | **Quick Record Center** | 3 seconds to complete a record, browser bookmarklet support | | **Personal Work Archive** | Timeline view, categorized browsing, search & filter | | **Success Pattern Analysis** | Analyze input-output correlation, identify success patterns | | **Team Success Pattern Library** | Share effective practices, build team knowledge base | | **Data Export** | Support JSON/CSV/Excel/PDF multi-format export | ### Supported Platforms - WeChat Official Account - WeChat Video Account - Douyin (TikTok China) - Xiaohongshu (Little Red Book) - Weibo - Bilibili --- ## Tech Stack ### Backend | Technology | Version | Description | |------------|---------|-------------| | Java | 17+ | Programming language | | Spring Boot | 3.2.0 | Application framework | | MyBatis-Plus | 3.5.9 | ORM framework | | MySQL | 8.0+ | Primary database | | JWT | 0.12.3 | Stateless authentication | | Knife4j | 4.3.0 | API documentation | | Apache POI | 5.2.5 | Excel export | ### Frontend | Technology | Version | Description | |------------|---------|-------------| | Vue | 3.4.21 | Frontend framework | | TypeScript | 5.3.3 | Type safety | | Element Plus | 2.5.6 | UI component library | | ECharts | 5.5.0 | Data visualization | | Axios | 1.6.7 | HTTP client | | Pinia | 2.1.7 | State management | | Vite | 5.1.3 | Build tool | --- ## Project Structure ``` WorkBeat/ ├── .qoder/rules/ # AI-assisted development rules │ ├── project-structure.md │ ├── backend-code.md │ ├── frontend-code.md │ ├── api-design.md │ ├── database.md │ ├── testing.md │ ├── git-workflow.md │ └── security.md ├── docs/ │ ├── plans/ # Implementation plans │ └── specs/ # Design specifications │ ├── 2026-06-17-workbeat-business-design.md │ └── 2026-06-17-workbeat-tech-design.md ├── workbeat-backend/ # Backend project │ ├── src/main/java/com/workbeat/ │ │ ├── controller/ # REST API controllers │ │ ├── service/ # Business logic layer │ │ ├── repository/ # Data access layer │ │ ├── entity/ # Entity classes │ │ ├── dto/ # Data transfer objects │ │ ├── config/ # Configuration classes │ │ ├── common/ # Common components │ │ └── enums/ # Enum classes │ ├── src/main/resources/ │ │ ├── application.yml # Main configuration │ │ └── db/ # Database scripts │ └── pom.xml ├── workbeat-frontend/ # Frontend project │ ├── src/ │ │ ├── api/ # API request modules │ │ ├── stores/ # Pinia state management │ │ ├── views/ # Page views │ │ ├── components/ # Common components │ │ ├── router/ # Router configuration │ │ ├── types/ # TypeScript types │ │ └── styles/ # Style files │ ├── tests/ # Test directory │ │ ├── unit/ # Unit tests │ │ ├── e2e/ # E2E tests │ │ └── api/ # API tests │ ├── package.json │ └── vite.config.ts └── README.md ``` --- ## Quick Start ### Prerequisites - Java 17+ - Node.js 18+ - MySQL 8.0+ - Maven 3.8+ ### Backend Setup ```bash # 1. Enter backend directory cd workbeat-backend # 2. Configure database connection (modify application.yml) spring: datasource: url: jdbc:mysql://localhost:3306/workbeat?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai username: root password: your_password # 3. Execute database initialization script mysql -u root -p < src/main/resources/db/schema.sql # 4. Build and run mvn clean package -DskipTests java -jar target/workbeat-backend-1.0.0.jar ``` After backend starts: - API URL: http://localhost:8080/api - API Docs: http://localhost:8080/api/doc.html ### Frontend Setup ```bash # 1. Enter frontend directory cd workbeat-frontend # 2. Install dependencies npm install # 3. Start development server npm run dev ``` After frontend starts: http://localhost:3000 --- ## Main API Endpoints ### Auth Module `/api/auth` | Endpoint | Method | Description | |----------|--------|-------------| | `/register` | POST | User registration | | `/login` | POST | User login, returns JWT | | `/me` | GET | Get current user info | ### Content Module `/api/content` | Endpoint | Method | Description | |----------|--------|-------------| | `/` | POST | Create content record | | `/` | GET | Get content list (paginated) | | `/{id}` | GET | Get content detail | | `/{id}` | PUT | Update content | | `/{id}` | DELETE | Delete content | ### Tag Module `/api/tags` | Endpoint | Method | Description | |----------|--------|-------------| | `/` | GET | Get user tags | | `/` | POST | Create tag | | `/{id}` | PUT | Update tag | | `/{id}` | DELETE | Delete tag | ### Dashboard Module `/api/dashboard` | Endpoint | Method | Description | |----------|--------|-------------| | `/overview` | GET | Get overview data | | `/trend` | GET | Get trend data | | `/platform` | GET | Get platform distribution | ### Team Module `/api/team` | Endpoint | Method | Description | |----------|--------|-------------| | `/` | GET | Get team info | | `/members` | GET | Get team members | | `/stats` | GET | Get team statistics | Full API documentation available at Swagger UI: http://localhost:8080/api/doc.html --- ## Deployment ### Production Configuration ```bash # Backend startup (production) java -jar workbeat-backend-1.0.0.jar \ --spring.profiles.active=prod \ -DDB_PASSWORD=your_password \ -DJWT_SECRET=your_secret # Frontend build npm run build # Deploy dist directory to Nginx ``` ### Nginx Configuration Example ```nginx server { listen 80; server_name your-domain.com; # Frontend static files root /var/www/workbeat; location / { try_files $uri $uri/ /index.html; } # Backend API proxy location /api { proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } } ``` --- ## Testing ### Frontend Tests ```bash cd workbeat-frontend # Run unit tests npm run test:unit # Run E2E tests npm run test:e2e # Run all tests npm run test:all ``` --- ## Development Guidelines Project follows rules in `.qoder/rules/` directory: - **[backend-code.md](.qoder/rules/backend-code.md)** - Backend code standards - **[frontend-code.md](.qoder/rules/frontend-code.md)** - Frontend code standards - **[api-design.md](.qoder/rules/api-design.md)** - API design standards - **[database.md](.qoder/rules/database.md)** - Database standards - **[testing.md](.qoder/rules/testing.md)** - Testing standards - **[git-workflow.md](.qoder/rules/git-workflow.md)** - Git workflow standards --- ## Documentation - [Business Design](docs/specs/2026-06-17-workbeat-business-design.md) - [Technical Design](docs/specs/2026-06-17-workbeat-tech-design.md) --- ## Contributing 1. Fork the repository 2. Create feature branch (`git checkout -b feature/xxx`) 3. Commit changes (`git commit -m 'feat: xxx'`) 4. Push branch (`git push origin feature/xxx`) 5. Create Pull Request --- ## License This project is for internal team use only. --- > **WorkBeat** — Make operations rhythmic, make success replicable