How mauvois/qip-public works
Main Components
• Frontend: Represent the Vue.js SPA. Indicate components like the main Vue instance (App.vue), routes (router.js), state management (store.js), and supporting assets (e.g., Tailwind CSS, logos).
• Backend: Represent the Django application. Split this into:
a. Core Project Infrastructure (“qip”): Contains settings, routing (including WebSocket support via consumers.py and routing.py), and application configuration.
b. API Module (“qipu_api”): Houses models, serializers, views, permissions, migrations, and admin interfaces that form the REST API layer.
• Database: Although not directly visible in the file tree, the README mentions PostgreSQL. Denote it as the persistent data store for user data, events, posts, etc.
• Static Assets & Additional Configurations: Include static files (for the backend), cors.json for cross-origin configurations, and build/deployment settings (package.json and vite.config.js on the frontend).
Relationships and Data Flow
• From frontend (Vue.js SPA) to backend (Django REST API endpoints) – representing user interaction via HTTP/HTTPS requests.
• From the backend to the PostgreSQL database for CRUD operations.
• Separation between the API-related logic (in qipu_api) and the core project settings/websockets (in qip).
Architectural Patterns and Design Principles
• MVC-like structure in the backend (models, serializers/views acting as the controller, and the admin interface as a view layer).
• SPA nature of the frontend with its component-based architecture and client-side routing.
• Mobile-first and responsive design approach incorporated in the Vue.js views.
Incorporate Relevant Technologies and Frameworks
• For the backend: Django framework, potential use of Django Channels for WebSocket handling, and PostgreSQL as the DB.
• For the frontend: Vue.js, Vite (vite.config.js), and supporting libraries (Vuex store for state management, Axios for HTTP requests as seen in axios.js).
Instructing the Principal Software Engineer
• Use clear labels for each component (e.g., “Vue.js Frontend”, “Django API”, “Django Core/Channels”, “PostgreSQL Database”).
• Frontend requests/responses (HTTP and WebSocket) with the backend.
• Backend database interactions.
• Detail any security/authentication components as mentioned in the README (e.g., authentication flow between the SPA and Django).