- Updated PriceRulesPage.vue to replace "Neu" button with a more intuitive "+" button for creating new rules. - Enhanced QuotesPage.vue with improved handling of quote lines, including read-only states, unique line validation, and better formatting for monetary values. - Added accordion sections for better organization of quote details and improved user experience. - Updated SuppliersPage.vue to replace "Neu" button with a "+" button for adding new suppliers. - Introduced new database migrations to add price category and default sales price fields to activities, and to include 'invoice_created' status in quotes.
Company Tool
Mehrprojekt-Struktur für eine firmeninterne Software mit Rust-Backend, PostgreSQL, Webfrontend und klassischem Desktopclient.
Projekte
backend/: Rust-Backend mit PostgreSQL-Anbindung und WebSocket-Kommunikationweb-frontend/: Browserbasiertes Frontend mit Vue 3, Vite und TypeScriptdesktop-client/: Nativer Client für Linux, Windows und macOS mit egui/eframeshared-protocol/: Gemeinsame Rust-Typen für Socket-Nachrichten
Kommunikation
Das Backend stellt einen WebSocket unter ws://localhost:8080/ws bereit. Die
Verbindung beginnt mit einem hello-Handshake. Danach werden fachliche
Nachrichten als AES-256-GCM-verschlüsselte Envelopes übertragen.
PostgreSQL starten
Ausführliche Installationsschritte stehen in INSTALL.md. Betriebsnotizen zu Schlüsseln, E-Mail, Backup und TLS stehen in BETRIEB.md.
cp .env.example .env
docker compose up -d postgres
Backend starten
cargo run -p companytool-backend
Kommunikation testen
In einem Terminal Backend starten, dann in einem zweiten Terminal:
COMMUNICATION_TEST_MODE=1 cargo run -p companytool-backend
node scripts/communication-test.mjs
Optional gegen eine andere URL:
node scripts/communication-test.mjs ws://localhost:8080/ws
Der Test öffnet zwei Clients, führt den verschlüsselten Handshake aus, entschlüsselt Snapshots, sendet eine verschlüsselte Ping-Nachricht und prüft, ob beide Clients ein verschlüsseltes Pong-Event erhalten.
Webfrontend starten
cd web-frontend
npm install
npm run dev
Desktopclient starten
cargo run -p companytool-desktop-client
Mit explizitem Backend:
cargo run -p companytool-desktop-client -- --api-url http://127.0.0.1:8080 --ws-url ws://127.0.0.1:8080/ws