How simrail/map-v2 works
High-Level Architecture Components
a) Frontend Applications
• Home Portal (packages/home)
• Interactive Map (packages/map)
• Common Package (packages/common)
b) External Services/Integrations
• Steam Integration (evident from steam.ts and SteamProfile.ts)
• Server-side Components (indicated by server directory)
┌─ SimRail System ──────────────────────┐
• ┌─ Frontend Layer ─────────────┐ │
• ┌─ Home ─┐ ┌─ Map ─┐ │ │
• Portal │ │ App │ │ │
• ┘ └───────┘ │ │
• ▲ ▲ │ │
• ┬───┘ │ │
• ▼ │ │
• ┌─ Common ─┐ │ │
• Package │ │ │
• ┘ │ │
• ┬──────────────┘ │
• ┌─ External ───▼──────────────┐ │
• Steam API Integration │ │
• ┘ │
• ┘
Component Details
For each component, include these specific details:
a) Home Portal (www.simrail.app):
• React/Vite application
• Routing functionality
• Feature cards component
• Footer component
b) Application (map.simrail.app):
• Next.js application
• Components (Markers, Stations, Signals)
• Search functionality
• Train tracking system
• Navigation controls
c) Common Package:
• Shared utilities
• Types
• Constants
Data Flow Indicators
• User navigation flow between Home and Map
• API calls to Steam services
• Data flow between components
• State management paths
Technical Stack Indicators
• React/Next.js
• TypeScript
• CSS Modules
• Vite
• Steam API