How rusaexp1emb2025/group16 works
Project type and purpose
• This is a backend service written in Rust, organized as a Cargo workspace under server/.
• It exposes an HTTP API to clients, applies domain logic, and calls out to an external “Remo” API (IoT endpoint) to adjust lighting.
File structure
• Top-level crates in server/:
• atmos: Rust binary (main.rs) – the entry point.
• atmos_server: Library crate implementing the service’s layers (domains, inbound HTTP, outbound adapters).
• remo_api: Auto-generated client code for the external Remo API.
• atmos_server/src/domain: business models (e.g. lighting, atmosfreq), ports and services (DDD style).
• atmos_server/src/inbound/http: HTTP routes and API definitions.
• atmos_server/src/outbound/remo: adapter invoking remo_api to talk to the IoT cloud.
• No database code – it’s a real-time, stateless orchestrator between HTTP clients and IoT.
README for additional insights
• The README only names the project (“group16”), so we rely on code structure to infer the layered DDD pattern and external API integration.
Essential details to capture
– The Cargo workspace structure and crate boundaries.
– The inbound/outbound ports & adapters pattern.
– The flow of data from client to IoT device and back.
– The dependency of atmos_server on remo_api for external calls.
– The entry point (atmos crate) that glues everything together.