How sonysemiconductorsolutions/aitrios-sample-tool-angle-adjustment works
Project Type and Purpose
• AAT is a web-based application for adjusting and validating camera angles on devices connected to an external service (AITRIOS). It serves two distinct user groups:
– Contractors: Use a mobile web app (found in the web-app directory) to adjust and submit camera angles.
– Admins: Use a desktop web app (found in the web-admin directory) to review and approve or reject these submissions.
• A shared backend server (in the backend folder) implements the API endpoints to serve both frontend apps.
File Structure to Extract Architectural Components
• Backend (backend directory)
– Contains a Python-based server with organized subdirectories: “api” for endpoint definitions, “models”, “schemas”, “services”, and supporting libraries. Its Dockerfiles, Pipfiles, and Prisma schemas indicate a containerized server, ORM-managed database (with Prisma using Postgres), and defined API routes.
– The “prisma” subdirectory shows schema definitions for the database.
• Frontend
– Web-admin (admin app): A desktop-targeted React/Vite application written in TypeScript, with clearly separated components, pages, services (for API interaction), state management (store slices), and localization assets.
– Web-app (contractor app): A mobile-friendly web application also built with React/Vite and TypeScript. It maintains a similar organizational structure with components, pages, contexts, and API repositories.
• Documentation (docsrc) and Tools (tools directory)
– Documentation covers setup guides for various environments (AWS, Azure, Codespaces) and API usage workflows.
– Tools such as “caat-helper” and cloud-setup scripts offer supplementary operational assistance and automation for deployment and maintenance.
• Use clear, descriptive labels for each component (e.g., “Backend API Server”, “Admin Frontend”, “Contractor Frontend”, “Database (Postgres via Prisma)”, “API Gateway/Integration with AITRIOS”).
– From the frontends to the backend.
– From the backend to the database, and if applicable, to external systems.
• Essential architectural elements: