Commit Graph
2 Commits
Author SHA1 Message Date
rick f74a15929a Add API Layer — REST endpoints serving real data (section 9)
CI / docker (push) Has been cancelled
CI / build-and-test (push) Has started running
Full ASP.NET Core minimal API with 13 endpoint groups:
- Auth: login (session cookies), logout, me, password reset
- Accounts: CRUD for chart of accounts with budget owner
- Ledger: inspect with running balance, balance sheet, P&L, transactions
- Expense Claims: list, create (with VAT), attest, validate
- Invoices: inbound (with OOD), outbound (with VAT), attestation
- Payouts: list, create
- Crypto: treasury overview, addresses, UTXOs
- Documents: upload (multipart), download
- Dashboard: task groups, YTD P&L
- Organizations: list, get, update settings
- Users: CRUD, role assignment/removal
- End of Month: checklist, close year
- Dev: impersonation (disabled in production)

Tested live against migrated production data — all endpoints returning
correct financial data from the v6 database.

Made-with: Cursor
2026-04-08 18:26:42 +02:00
rick 8aafe681b1 Scaffold v6 solution, frontend, CI, and Docker
CI / docker (push) Has been cancelled
CI / build-and-test (push) Has been cancelled
Section 1 complete (tasks 1.1-1.7):
- .NET 8 solution with 8 projects (Common, Basic, Database, Logic, Api,
  Backend, Migration, Tests) and correct dependency graph
- NuGet deps: MySqlConnector, NBitcoin, Microsoft.Extensions.Hosting,
  xunit, coverlet
- Common layer: IHasIdentity, enums (Permission, FinancialAccountType,
  DocumentType, CryptoChain, ExpenseClaimStatus, InvoiceStatus,
  PayoutStatus, FinancialDependencyType)
- React + TypeScript + Vite frontend with MUI, react-router, react-i18next
- Localization: EN, SV, DE translation files
- Vite builds to src/UsingCash.Api/wwwroot for static serving
- Multi-stage Dockerfile: Node build + .NET build -> aspnet runtime
- Gitea Actions CI: build, test, lint, Docker image
- appsettings.json with read/write/admin DB credential structure

Also updates data-migration spec/design for mysqldump-based workflow.

Made-with: Cursor
2026-04-08 16:21:00 +02:00