# Property Rental App

Property rental sample app — property listings, site container, and Experience Cloud deployment.

## 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 propertyrentalapp:build
```

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

### Dev server

```bash
nx run propertyrentalapp:dev
```

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

### Watch

```bash
nx run propertyrentalapp: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 propertyrentalapp:build
cd dist/force-app/main/default/uiBundles/propertyrentalapp && 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/propertyrentalapp/README.md).
