# MixedAssets

MixedAssets is a fixed asset management and depreciation SPA for small and mid-sized organizations. This first build includes an Express API, Vue/Vuetify frontend, SQLite persistence, role-aware login, asset register, templates, JSON tax-rule sets, depreciation reports, import/export, file storage scaffolding, and admin configuration.

## Run

```bash
npm install
npm run dev
```

Open `http://localhost:5173`.

Default seeded login:

```text
admin@mixedassets.local
ChangeMe123!
```

## Scripts

```bash
npm run dev      # API + Vite SPA
npm run build    # production SPA build
npm start        # Express API and built SPA
npm test         # API smoke test
```

## Configuration

Environment variables are shown in `.env.example`. The app also stores editable runtime settings in SQLite through the Admin screen, including server FQDN, allowed CORS domains, and database metadata.

Tax and depreciation rule updates live as JSON rule sets. The starter federal template is in `data/tax-rules/federal-2026.json` and is seeded into the database on first run.

## Compliance Note

The depreciation engine is built to support rule updates, projections, books, conventions, and method expansion. The included tax template is an engineering starter and should be validated against current IRS, state, and local guidance before production tax filing.
