Ria Choi
← Portfolio

Orcha

A dashboard project organized around separate web, mobile, and API applications that share an explicit contract.

Orcha

The design concern in Orcha was keeping three applications understandable as they evolved together. The web dashboard, the Expo client, and the Spring Boot API have different runtimes. Organizing them as separate apps makes it easier to locate platform-specific behavior and see which decisions belong in the shared API contract.

An app boundary you can see in the folder structure

The repository separates the web, mobile, and API apps. Web UI and build concerns stay with the React and Vite client. Expo owns native concerns such as secure local storage. The API defines the shared operations in OpenAPI, so both clients have one reference for request and response behavior.

Explicit communication across deployment origins

The web client deploys separately from the API. Its requests use authorization headers plus headers for conditional requests and reconnecting to event streams. The Spring configuration declares what browsers can send and which response metadata they can read. For example, an ETag is available to web code because it is explicitly exposed.

Java
config.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
config.setAllowedHeaders(List.of("Authorization", "Content-Type", "Idempotency-Key", "If-None-Match", "If-Match", "Last-Event-ID"));
config.setExposedHeaders(List.of("ETag", "Location", "Retry-After"));
config.setAllowCredentials(false);
config.setMaxAge(Duration.ofDays(1));

What I learned

The structure was most useful at integration time. I could trace a web-only problem to the browser boundary, or a contract problem to the API, before changing either client.

Related article

Draggable Cards and Dashboard