# Property Management App

Property management sample app — property management, maintenance requests, and Agentforce conversation client.

## In this monorepo

This package is a **template app** in the ui-bundle monorepo. It is built by applying feature patches to the base React app; the output is written to `dist/`.

### Build

```bash
nx run propertymanagementapp:build
```

Produces an SFDX project in `dist/` with the UI Bundle at `dist/force-app/main/default/uiBundles/propertymanagementapp/`.

### Dev server

```bash
nx run propertymanagementapp:dev
```

Starts the Vite dev server from the built output in `dist/`.

### Watch

```bash
nx run propertymanagementapp:watch
```

Re-applies patches automatically when source files change.

### Test

This package has no dedicated test target. To run tests, build first, then run them from the built UI Bundle:

```bash
nx run propertymanagementapp:build
cd dist/force-app/main/default/uiBundles/propertymanagementapp && npm install && npm test
```

### Clean

```bash
npm run clean
```

Removes the `dist/` directory.

---

For standalone run, deploy, and test instructions (e.g. after publishing or extracting `dist/`), see the [UI Bundle README](dist/force-app/main/default/uiBundles/propertymanagementapp/README.md).
