# Telegram Marketing Agent - Frontend Modern Vue 3 management interface for the Telegram Marketing Agent System. ## Features - 🎯 **Campaign Management**: Create, manage, and monitor marketing campaigns - 📊 **Real-time Analytics**: Track performance metrics and engagement rates - 🧠 **A/B Testing**: Built-in experimentation framework - 🤖 **AI Integration**: Claude-powered strategy generation and optimization - 🔐 **Compliance Tools**: GDPR/CCPA compliance management - 🌍 **Multi-language Support**: English and Chinese interfaces - 🎨 **Modern UI**: Built with Element Plus and Tailwind CSS ## Tech Stack - **Framework**: Vue 3 with Composition API - **State Management**: Pinia - **Routing**: Vue Router 4 - **UI Library**: Element Plus - **Styling**: Tailwind CSS - **Build Tool**: Vite - **Charts**: Chart.js with vue-chartjs - **HTTP Client**: Axios - **Internationalization**: Vue I18n ## Getting Started ### Prerequisites - Node.js 18+ and npm 8+ - Backend services running (see main README) ### Installation ```bash # Install dependencies npm install # Start development server npm run dev ``` The application will be available at http://localhost:3008 ### Environment Configuration The frontend proxies API requests to the backend. Configure the proxy in `vite.config.js`: ```javascript server: { proxy: { '/api': { target: 'http://localhost:3000', // API Gateway URL changeOrigin: true } } } ``` ## Project Structure ``` src/ ├── api/ # API client modules │ ├── index.js # Axios configuration │ └── modules/ # API endpoints by domain ├── assets/ # Static assets ├── components/ # Reusable components ├── locales/ # i18n translations ├── router/ # Vue Router configuration ├── stores/ # Pinia stores ├── utils/ # Utility functions ├── views/ # Page components ├── App.vue # Root component ├── main.js # Application entry └── style.css # Global styles ``` ## Key Features ### Campaign Management - Create campaigns with AI-powered strategy generation - Multi-step message sequences with delays - Target audience selection by groups and tags - Real-time campaign status monitoring - Campaign lifecycle management (start, pause, resume, cancel) ### Analytics Dashboard - Key performance metrics with trend analysis - Time-series charts for message and engagement data - Campaign performance comparison - Real-time activity feed - Export reports in multiple formats ### A/B Testing - Create experiments with multiple variants - Statistical significance testing - Real-time result monitoring - Winner selection and rollout ### Compliance Management - User consent tracking - Data export/deletion requests - Audit log viewing - GDPR/CCPA compliance status ## Development ### Available Scripts ```bash # Development server npm run dev # Production build npm run build # Preview production build npm run preview # Lint and fix npm run lint # Format code npm run format ``` ### Code Style - Use Composition API with `