How keremclp/santiye-defter works
Şantiye Hesap is a multi-company construction-finance web product for tracking income, expenses, agreements, receivables, payables, and due dates. Users enter through the React application, authenticate, and use its domain pages and API client to perform work against the Express REST API; shared schemas and finance functions support both sides. The API also provides separate platform-owner administration, reporting/export, and document storage. Some domain routes and services are unsampled, so their presence is represented by supported subsystem paths without speculative internal call chains.
Main entry points: routes.tsx Routes and guards · client.ts API client · company-data.ts Company domain API · app.ts HTTP application
Components 22
Web application
- Routes and guards
apps/web/src/routes.tsx - Login pages
apps/web/src/features/auth/LoginPage.tsx - Finance workspaces
apps/web/src/features/transactions/TransactionForm.tsx - Agreements and dues
apps/web/src/features/agreements/AgreementDetailPage.tsx - Document uploads
apps/web/src/features/documents/useUploadQueue.ts - Reports and exports
apps/web/src/features/reports/ReportsPage.tsx - Owner administration
apps/web/src/features/admin/AdminHomePage.tsx - API client
apps/web/src/api/client.ts
API and domain
- HTTP application
apps/api/src/app.ts - Customer authentication
apps/api/src/services/customer-auth.ts - Platform auth and management
apps/api/src/services/platform-auth.ts - Company domain API
apps/api/src/routes/company-data.ts - Report generation
apps/api/src/reports/full-export.ts - Document service
apps/api/src/services/documents.ts - Service access rules
apps/api/src/services/service-state.ts
Shared finance logic
- Finance calculations
packages/shared/src/finance - Shared domain and schemas
packages/shared/src/domain.ts
Persistence and integrations
- Company data models
apps/api/src/models - S3-compatible storage
apps/api/src/lib/storage.ts
Other components
- Company user
- MongoDB
- S3 / MinIO storage
Connections 28
- Company user → Routes and guards: opens
apps/web/src/routes.tsx - Routes and guards → Login pages: routes to
apps/web/src/routes.tsx - Routes and guards → Finance workspaces: routes to
apps/web/src/routes.tsx - Routes and guards → Agreements and dues: routes to
apps/web/src/routes.tsx - Routes and guards → Document uploads: routes to
apps/web/src/routes.tsx - Routes and guards → Reports and exports: routes to
apps/web/src/routes.tsx - Routes and guards → Owner administration: routes to
apps/web/src/routes.tsx - Login pages → API client: requests through
- Finance workspaces → API client: requests through
- Agreements and dues → API client: requests through
apps/web/src/features/agreements/AgreementDetailPage.tsx - Document uploads → API client: uploads through
apps/web/src/features/documents/useUploadQueue.ts - Reports and exports → API client: requests through
- Owner administration → API client: requests through
- API client → HTTP application: sends HTTP
README.md - HTTP application → Customer authentication: registers
apps/api/src/app.ts - HTTP application → Company domain API: registers
apps/api/src/app.ts - HTTP application → Platform auth and management: registers
apps/api/src/app.ts - Company domain API → Customer authentication: uses auth service
apps/api/src/app.ts - Customer authentication → Company data models: reads and writes
apps/api/src/services/customer-auth.ts - Platform auth and management → Company data models: reads and writes
apps/api/src/services/platform-auth.ts - Platform auth and management → Customer authentication: uses customer auth
apps/api/src/services/platform-auth.ts - Company domain API → Service access rules: checks access
- Company domain API → Finance calculations: uses calculations
- Company domain API → Shared domain and schemas: uses contracts
- Report generation → S3-compatible storage: stores exports
- Document service → S3-compatible storage: stores documents
- S3-compatible storage → S3 / MinIO storage: accesses
apps/api/src/lib/storage.ts - Company data models → MongoDB: persists in