How morris3979/instai_web_server works
Project type and purpose
• This is a full-stack web application for managing organizations, projects, users, devices, data annotation, and model inference using a React/Redux frontend and a Node.js/Express backend. It integrates with AWS IoT and S3 and persists metadata in a database (via ORM models in src/server/database).
File structure
• Top-level:
• Dockerfile, .env, build/config files → Dockerized deployment and environment configuration
• public/ and webpack.config.js → React single-page app entry served by Webpack
• src/client/ → React components, pages, Redux store
• src/server/ → Express server code, controllers, routes, middleware, protocol adapters and database models
• Notice MVC-style separation in backend (routes → controllers → database models) and Redux pattern in frontend (components → actions → reducers → store).
• Protocol support for HTTP, HTTPS, TCP under src/server/protocol.
• AWS integrations under src/server/controllers/cloud service.
Detail
• Subsystem: protocol adapters, routing layer, controller modules (data, device, model, label, organization, user), AWS service controllers, ORM models.
• Don’t oversimplify: capture how annotation page interacts with TF-YOLO web model assets loaded from public/static or S3.
• How Dockerfile and scripts integrate into deployment pipeline.