How konnn04/simple-comc-ai-system works
Main Components
• Client (Front-end): This includes all the React Native components (found under the “client” folder) for different functionalities such as listening exams, speaking exams, vocabulary exercises, user authentication, and communication with AI.
• Server (Back-end): The Flask-based API housed in the “server” folder. Sub-components include:
• Authentication (e.g., routes and DAO under myapp/auth)
• Exam Management (routes and utility modules for speaking, listening, etc.)
• Admin and Teacher modules (for managing users, exams, and content)
• AI and Media Processing: Modules handling STT (Vosk, silero_stt.py), TTS (KokoroTTS, tts.py), and Gemini AI integration.
• Database Layer: Managed using SQLAlchemy (with MySQL as per the README).
• Database: A MySQL database (critical for storing user data, exam results, and application state).
• External Services: Third-party APIs such as Google Gemini AI for content generation and evaluation, and possibly Cloudinary for media storage.
Relationships and Data Flow
• How the server interacts with the database (using SQLAlchemy’s ORM) and external services (for voice recognition, TTS, etc.).
Architectural Patterns and Principles
• Client Side: Follows a component-based architecture (React/React Native components) with clear separation between navigation (navigators directory) and UI components.
• Server Side: Uses Flask’s routing mechanism and a modularized structure that separates concerns (auth, admin, teacher, data processing). It implicitly uses an MVC-like approach for handling data models (models.py), views (templates), and controllers (routes).
• Secure communication between client and server (JWT authentication and .env configuration files for keys).
Relevant Technologies and Frameworks
• Front-end: React Native, Expo, React Navigation, Axios.
• Back-end: Flask, SQLAlchemy, Flask-Admin, JWT handling.
• AI Technologies: Vosk, KokoroTTS, Google Gemini AI.
• Database: MySQL.
• Additional: eSpeak for TTS support at the system level.