# Workspaces and commands in rpm-example-app

Canonical page: https://docs.ovok.com/example-rpm-app/monorepo/workspaces

The monorepo keeps the mobile app, dashboard, and EHR in separate npm workspaces under `apps/*`. The root lockfile installs all three; each application owns its runtime and dependencies.

## Repository map [#repository-map]

| Path | Responsibility | Source |
| --- | --- | --- |
| `apps/mobile` | Expo and React Native patient experience | [Mobile workspace](https://github.com/Ovok-Dev/rpm-example-app/tree/dev/apps/mobile) |
| `apps/dashboard` | React and Vite clinician dashboard | [Dashboard workspace](https://github.com/Ovok-Dev/rpm-example-app/tree/dev/apps/dashboard) |
| `apps/ehr` | React and Vite clinic EHR for intake, care teams, and CHF RPM enrollment | [EHR workspace](https://github.com/Ovok-Dev/rpm-example-app/tree/dev/apps/ehr) |
| `package.json` | Root workspaces and combined commands | [Root package.json](https://github.com/Ovok-Dev/rpm-example-app/blob/dev/package.json) |
| `turbo.json` | Dev, check, and build task behavior | [Turborepo config](https://github.com/Ovok-Dev/rpm-example-app/blob/dev/turbo.json) |

There is no shared UI package in the root. Keep native and browser-specific code in the app that owns it; the apps use Ovok as their shared clinical backend. A separate local relay shares only synthetic demo measurements during development.

## Commands from the repository root [#commands-from-the-repository-root]

| Command | Purpose |
| --- | --- |
| `npm run dev` | Start the mobile, dashboard, and EHR development servers. |
| `npm run mobile` | Start the Expo development server. |
| `npm run dashboard` | Start the Vite dashboard. |
| `npm run ehr` | Start the Vite EHR. |
| `npm run ios` / `npm run android` | Build and launch the mobile app on the selected platform. |
| `npm run typecheck` | Type-check both workspaces. |
| `npm test` | Run tests in the workspaces. |
| `npm run build` | Build the dashboard and export the mobile JavaScript bundle. |
| `npm run check` | Run type checks, tests, Expo dependency validation, and builds. |

Turborepo defines these tasks in [`turbo.json`](https://github.com/Ovok-Dev/rpm-example-app/blob/dev/turbo.json). See the per-app guides for their environment and sandbox requirements.
