How olisaemeka111/railshack works
RailShack is a train-booking application composed of 50 cooperating services. Its documented user journey is browser → frontend → API gateway → relevant services, supporting train search, booking, PNR lookup, trip history, and cancellation. The graph preserves major service domains and sampled internal calls. Most service-to-service routes and storage ownership were not shown, so those links are omitted; shared-store links are marked unverified and optional.
Main entry points: main.go API gateway · libs Shared service kits · chart-preparation/app.py Chart preparation · retiring-rooms/app.py Retiring rooms
Components 29
User experience
- Web frontend
services/frontend/index.js - API gateway
services/api-gateway/main.go
Rail discovery
- Stations
services/stations/main.go - Train catalog
services/trains/main.go - Routes
services/routes/main.go - Schedules
services/schedules/Main.java - Train search
services/search/main.go - Fare quotes
services/fares/Main.java
Booking lifecycle
- Booking
services/booking/main.go - Seat allocation
services/seat-allocation/main.go - PNR status
services/pnr/main.go - Trip history
services/booking-history/index.js - Cancellation
services/cancellation/index.js - Refunds
services/refunds/main.go - Ticket PDF
services/ticket-pdf/app.py
Payments
- Payment services
services/payment-gateway/main.go - Wallet
services/wallet/main.go - UPI
services/upi/index.js - Invoices
services/invoices/Main.java - Settlements
services/settlements/app.py
Travel extras
- Travel extras
services - Chart preparation
services/chart-preparation/app.py - Retiring rooms
services/retiring-rooms/app.py
Platform services
- Identity and users
services - Authentication
services/auth/main.go - Shared service kits
libs
Other components
- Browser user
- PostgreSQL
- Redis cache
Connections 18
- Browser user → Web frontend: uses
README.md - Web frontend → API gateway: sends API requests
README.md - API gateway → Train search: routes requests
README.md - API gateway → Booking: routes requests
README.md - API gateway → PNR status: routes requests
README.md - API gateway → Trip history: routes requests
README.md - API gateway → Cancellation: routes requests
README.md - Chart preparation → Schedules: calls
services/chart-preparation/app.py - Retiring rooms → Stations: calls
services/retiring-rooms/app.py - Chart preparation → Shared service kits: uses runtime
services/chart-preparation/app.py - Retiring rooms → Shared service kits: uses runtime
services/retiring-rooms/app.py - Ticket PDF → Shared service kits: uses runtime
services/ticket-pdf/app.py - Settlements → Shared service kits: uses runtime
services/settlements/app.py - Fare quotes → Shared service kits: uses runtime
services/fares/Main.java - Invoices → Shared service kits: uses runtime
services/invoices/Main.java - Booking → PostgreSQL: may persist
- Payment services → PostgreSQL: may persist
- Train search → Redis cache: may cache