# ai-dirgram **Repository Path**: yyyan126/ai-dirgram ## Basic Information - **Project Name**: ai-dirgram - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-04 - **Last Updated**: 2026-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AI Diagram Platform An AI-powered diagram creation platform that allows users to generate professional diagrams through natural language descriptions. ## Features - 🤖 AI-powered diagram generation - 🎨 Multiple drawing engines (Draw.io, Mermaid, Excalidraw) - 📝 Project management and version control - 💬 Chat interface with multimodal support - 📱 Responsive design for mobile and desktop - 🔐 Secure authentication and authorization ## Tech Stack ### Frontend - Vue 3 + TypeScript - Vite - Element Plus - Pinia (State Management) - Axios ### Backend - FastAPI - Tortoise-ORM - MySQL 8.0+ - Redis 6.0+ - Python 3.10+ ## Project Structure ``` . ├── backend/ # FastAPI backend │ ├── app/ │ │ ├── api/ # API endpoints │ │ ├── core/ # Core configuration │ │ ├── models/ # Database models │ │ └── services/# Business logic │ ├── main.py # Application entry point │ └── requirements.txt │ └── frontend/ # Vue 3 frontend ├── src/ │ ├── views/ # Page components │ ├── stores/ # Pinia stores │ ├── services/# API services │ └── router/ # Vue Router └── package.json ``` ## Getting Started ### Prerequisites - Python 3.10+ - Node.js 18+ - MySQL 8.0+ - Redis 6.0+ ### Backend Setup 1. Navigate to the backend directory: ```bash cd backend ``` 2. Create a virtual environment: ```bash python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate ``` 3. Install dependencies: ```bash pip install -r requirements.txt ``` 4. Copy `.env.example` to `.env` and configure your environment variables: ```bash cp .env.example .env ``` 5. Initialize the database: ```bash aerich init -t app.core.database.TORTOISE_ORM aerich init-db ``` 6. Run the development server: ```bash uvicorn main:app --reload --host 0.0.0.0 --port 8000 ``` ### Frontend Setup 1. Navigate to the frontend directory: ```bash cd frontend ``` 2. Install dependencies: ```bash npm install ``` 3. Copy `.env.example` to `.env`: ```bash cp .env.example .env ``` 4. Run the development server: ```bash npm run dev ``` The frontend will be available at `http://localhost:5173` ## Development ### Backend API Documentation Once the backend is running, visit: - Swagger UI: `http://localhost:8000/docs` - ReDoc: `http://localhost:8000/redoc` ### Database Migrations Create a new migration: ```bash aerich migrate --name ``` Apply migrations: ```bash aerich upgrade ``` ## License MIT