How nikogrizek/parqis works
Parqis is a parking-management platform: users interact through a web or mobile gateway to manage accounts, reservations, parking inventory, and entry/exit validation. Reservations and parking availability are separate domain stages; MS3 validates entry against MS2 availability and records validation outcomes. The README documents REST, gRPC, and Kafka integrations, while the excerpts show key service-level calls. Some gateway and frontend capabilities are documented but their internal routing was not sampled, so those links are shown only where supported.
Main entry points: index.js Web gateway · App.jsx Frontend shell · main.py Mobile gateway · service.py Spot allocation
Components 30
Client UI
- Frontend shell
frontend-shell/src/App.jsx - Auth MFE
mfe-auth/src/App.jsx - Reservations MFE
mfe-reservations/src/App.jsx - Operations MFE
mfe-operations/src/App.jsx
API Gateways
- Web gateway
api-gateway-web/index.js - Mobile gateway
api-gateway-mobile/main.py
MS1 Reservations
- Authentication
ms1-reservations/src/modules/auth/application/auth.service.ts - Reservation API
ms1-reservations/src/modules/reservations/api/reservations.routes.ts - Reservation workflows
ms1-reservations/src/modules/reservations/application/reservations.service.ts - Request validation
ms1-reservations/src/app/http/middlewares/validation.middleware.ts - User persistence
ms1-reservations/src/modules/auth/infrastructure/user.repository.prisma.ts - MS1 platform setup
ms1-reservations/src/shared/config/env.ts - MS1 database
ms1-reservations/src/shared/infrastructure/database/prisma.client.ts - MS1 logging
ms1-reservations/src/shared/observability/logger.ts
MS2 Parking
- Parking lot API
ms2-parking-spots/app/PARKING_LOTS/api.py - Spot allocation
ms2-parking-spots/app/SPOT_ALLOCATION/service.py - Occupancy calculation
ms2-parking-spots/app/OCCUPANCY/service.py - Availability cache
ms2-parking-spots/app/INTEGRATIONS/cache.py - MS2 platform
ms2-parking-spots/app/PLATFORM/config.py - MS2 database
ms2-parking-spots/app/PLATFORM/database.py - Spot data model
ms2-parking-spots/app/SPOT_ALLOCATION/models.py - Spot repository
ms2-parking-spots/app/SPOT_ALLOCATION/repository.py - MS2 gRPC service
ms2-parking-spots/app/INTEGRATIONS/grpc_server.py
MS3 Validation
- Validation API
ms3-validation/src/main/java/com/parqis/ms3/validation/api/ValidationController.java - Validation workflow
ms3-validation/src/main/java/com/parqis/ms3/validation/application/ValidationService.java - MS2 gRPC client
ms3-validation/src/main/java/com/parqis/ms3/integrations/grpc/ParkingSpotsGrpcClient.java - Validation records
ms3-validation/src/main/java/com/parqis/ms3/validation/infrastructure/ValidationLogRepository.java - Parking event publisher
ms3-validation/src/main/java/com/parqis/ms3/integrations/kafka/ParkingEventsPublisher.java
Other components
- User
- Kafka
Connections 32
- User → Frontend shell: uses
- Frontend shell → Auth MFE: loads
frontend-shell/src/App.jsx - Frontend shell → Reservations MFE: loads
frontend-shell/src/App.jsx - Frontend shell → Operations MFE: loads
frontend-shell/src/App.jsx - User → Web gateway: requests web API
- User → Mobile gateway: requests mobile API
- Web gateway → Authentication: forwards auth
- Web gateway → Reservation API: forwards reservations
- Web gateway → Parking lot API: forwards parking
- Web gateway → Validation API: forwards validation
- Mobile gateway → Reservation API: forwards reservations
- Mobile gateway → Parking lot API: forwards parking
- Mobile gateway → Validation API: forwards gate checks
- Reservation API → Request validation: validates requests
ms1-reservations/src/modules/reservations/api/reservations.routes.ts - Reservation API → Reservation workflows: dispatches
- Authentication → User persistence: uses
ms1-reservations/src/modules/auth/application/auth.service.ts - Reservation workflows → MS1 database: persists reservations
- Reservation workflows → Kafka: publishes events
- MS1 platform setup → MS1 database: configures
ms1-reservations/src/index.ts - MS1 platform setup → MS1 logging: configures
ms1-reservations/src/index.ts - Parking lot API → Spot allocation: delegates allocation
ms2-parking-spots/app/main.py - Spot allocation → Spot repository: reads and updates
ms2-parking-spots/app/SPOT_ALLOCATION/service.py - Spot allocation → Occupancy calculation: calculates availability
ms2-parking-spots/app/SPOT_ALLOCATION/service.py - Spot allocation → Availability cache: reads and invalidates
ms2-parking-spots/app/SPOT_ALLOCATION/service.py - Spot repository → Spot data model: loads spots
ms2-parking-spots/app/SPOT_ALLOCATION/repository.py - MS2 database → MS2 platform: uses settings
ms2-parking-spots/app/PLATFORM/database.py - Validation API → Validation workflow: dispatches
ms3-validation/src/main/java/com/parqis/ms3/validation/api/ValidationController.java - Validation workflow → MS2 gRPC client: checks availability
ms3-validation/src/main/java/com/parqis/ms3/validation/application/ValidationService.java - MS2 gRPC client → MS2 gRPC service: calls gRPC
- Validation workflow → Validation records: stores validation
ms3-validation/src/main/java/com/parqis/ms3/validation/application/ValidationService.java - Validation workflow → Parking event publisher: publishes outcomes
ms3-validation/src/main/java/com/parqis/ms3/validation/application/ValidationService.java - Parking event publisher → Kafka: sends events