How sweproj5osh/sweproj_5oshhatgebak works
This is a Cairo street-parking modular monolith. The driver-facing journey is to sign in, scan a site code, open a parking ticket, pay the committee price, and receive an answer; the server remains responsible for business rules. The README documents a transactional write pipeline that validates requests, checks repeatability, runs a module handler, appends one audit entry, stages events, and commits. The tree and excerpts show the entry point and several domain implementations; many other domain capabilities are represented by their exact module directories because their source was not sampled.
Main entry points: registry.ts Operation registry · writes.ts Write pipeline · ticketing Ticketing · main.ts HTTP entry
Components 23
Driver clients
- Sign-in client
src/apps/shared-client/sign-in/driver-sign-in-client.ts - Scan client
src/apps/shared-client/scanning/driver-scan-client.ts - Payment client
src/apps/shared-client/payments
Server runtime
- HTTP entry
src/entrypoint/main.ts - HTTP server
src/entrypoint/server.ts - Request pipeline
src/entrypoint/handle-request.ts - Write pipeline
src/entrypoint/writes.ts - Operation registry
src/entrypoint/operations/registry.ts
Parking operations
- Accounts and access
src/modules/accounts-and-access-control/public.ts - Sites and codes
src/modules/sites-and-areas/public.ts - Licensing and attendance
src/modules/licensing-assignment-attendance - Ticketing
src/modules/ticketing
Governance domains
- Committee prices
src/modules/committee-prices - Payments
src/modules/payments - Cash custody
src/modules/cash-custody - Approvals
src/modules/approvals - Money dashboard
src/modules/money-check-dashboard - Other services
src/modules
Shared foundation
- Audit log
src/modules/audit-log - Unit of work
src/shared/unit-of-work.ts - In-memory database
src/adapters/in-memory/in-memory-database.ts - Domain events
src/shared/events/event.ts
Other components
- Driver
Connections 28
- Driver → Sign-in client: signs in
- Driver → Scan client: scans code
- Driver → Payment client: pays
- Sign-in client → HTTP entry: calls server
- Scan client → HTTP entry: calls server
- Payment client → HTTP entry: calls server
- HTTP entry → HTTP server: starts
src/entrypoint/main.ts - HTTP server → Request pipeline: handles requests
src/entrypoint/server.ts - Request pipeline → Write pipeline: routes writes
- Write pipeline → Operation registry: dispatches
- Operation registry → Accounts and access: registers handlers
- Operation registry → Sites and codes: registers handlers
- Operation registry → Licensing and attendance: registers handlers
- Operation registry → Ticketing: registers handlers
- Operation registry → Committee prices: registers handlers
- Operation registry → Payments: registers handlers
- Write pipeline → Audit log: appends entry
- Write pipeline → Domain events: stages events
- Write pipeline → Unit of work: commits together
- In-memory database → Unit of work: implements
src/adapters/in-memory/in-memory-database.ts - Accounts and access → Unit of work: uses transaction
src/modules/accounts-and-access-control/public.ts - Sites and codes → Unit of work: uses transaction
src/modules/sites-and-areas/public.ts - Licensing and attendance → Accounts and access: checks access
src/modules/licensing-assignment-attendance/internal/assignments-service.ts - Licensing and attendance → Sites and codes: locates site
src/modules/licensing-assignment-attendance/internal/assignments-service.ts - Ticketing → Accounts and access: checks ownership
src/modules/accounts-and-access-control/public.ts - Ticketing → Sites and codes: uses site codes
- Payments → Ticketing: settles tickets
- Payments → Committee prices: uses prices