How abhishek-deshmukh9/cosmosdb works
Orbit Visualizer is a prototype exoplanet catalog and exploration interface. Users browse and search star systems, inspect planet details and habitability indicators, explore visualizations and analytics, and can submit or edit catalog entries. The React router dispatches to feature pages; those pages call a FastAPI backend, which serves catalog, analytics, and CRUD operations backed by MySQL. Separate Python ingestion scripts load constellation and planet-system data. The README confirms the MySQL-backed prototype, but unsampled page and router implementations limit certainty about some feature wiring.
Main entry points: main.tsx Page router · main.py API application · PlanetDetail.tsx Planet detail · AddPlanet.tsx Add planet
Components 20
Web Interface
- Page router
src/main.tsx - Home
src/app/pages/Home.tsx - Observatory
src/app/pages/Observatory.tsx - Add planet
src/app/pages/AddPlanet.tsx - Planet detail
src/app/pages/PlanetDetail.tsx - Analytics view
src/app/pages/Analytics.tsx - Gallery
src/app/pages/Gallery.tsx - System view
src/app/pages/SystemView.tsx
Backend API
- API application
backend/main.py - Catalog CRUD
backend/crud.py - Analytics API
backend/analytics.py - ESI calculation
backend/utils.py
Catalog Data
- Planet ingestion
backend/ingest_planets.py - Constellation ingestion
backend/ingestConstellation.py - MySQL catalog
Exploration Views
- Orbit renderer
src/app/components/OrbitVisualizer.tsx - Planet information
src/app/components/PlanetInfo.tsx - ESI gauge
src/app/components/ESIGauge.tsx - Habitable zones
src/app/components/ZoneTracker.tsx
Other components
- Catalog user
Connections 25
- Catalog user → Page router: navigates
- Page router → Home: routes
- Page router → Observatory: routes
- Page router → Add planet: routes
- Page router → Planet detail: routes
- Page router → Analytics view: routes
- Page router → Gallery: routes
- Page router → System view: routes
- Home → Orbit renderer: renders
- Home → Planet information: renders
- Planet detail → API application: fetches details
- Planet detail → Catalog CRUD: updates records
- Planet detail → ESI gauge: renders score
- Planet detail → Habitable zones: renders zones
- Add planet → API application: loads constellations
- Add planet → API application: searches systems
- Add planet → Catalog CRUD: creates planet
- API application → Analytics API: registers routes
- API application → Catalog CRUD: registers routes
- API application → MySQL catalog: queries catalog
- API application → ESI calculation: calculates ESI
- Catalog CRUD → MySQL catalog: reads and writes
- Analytics API → MySQL catalog: queries analytics
- Planet ingestion → MySQL catalog: loads planet data
- Constellation ingestion → MySQL catalog: loads constellations