How mmmarcee/currency-converter works
FiatFlux is a currency-conversion frontend with an ASP.NET API for live rates, conversions, and historical-rate queries. The main user flow is browser routing to the home screen, entering currencies and an amount, calling the conversion endpoint, and displaying the returned result; the chart screens use bundled sample data. Registration and login routes exist, but the available evidence does not show a connected authentication service. The API’s history capability is represented, but no frontend-to-history call is evidenced.
Main entry points: main.jsx Route entry · Header.jsx Site header · Converter.jsx Converter · FrankfurterService.cs Rate and history service
Components 24
Web application
- Route entry
frontend/src/main.jsx - Main layout
frontend/src/layouts/MainLayout.jsx - Auth layout
frontend/src/layouts/AuthLayout.jsx - Home screen
frontend/src/components/Home/Home.jsx - Converter
frontend/src/components/Converter/Converter.jsx - Currency selector
frontend/src/components/Converter/CurrencySelect.jsx - Currency and UI data
frontend/src/components/Arrays.jsx - Chart collection
frontend/src/components/Chart/ChartMain.jsx - Rate chart
frontend/src/components/Chart/Chart.jsx - Sample chart data
frontend/src/components/Chart/data.js - Site header
frontend/src/components/Header/Header.jsx - Header controls
frontend/src/components/Header/HeaderButtons.jsx - Header index
frontend/src/components/Header/HeaderIndex.jsx - Header road
frontend/src/components/Header/HeaderRoad.jsx - Notifications
frontend/src/components/Header/Notifications.jsx - Profile panel
frontend/src/components/Header/Profile.jsx - Registration screen
frontend/src/components/Auth/Register.jsx - Login screen
frontend/src/components/Auth/Login.jsx
Currency API
- Currency endpoints
backend/Controllers/CurrencyController.cs - Rate and history service
backend/Services/FrankfurterService.cs - Rate response model
backend/Models/FrankfurterRate.cs - Currency rate model
backend/Models/CurrencyRate.cs
External rates
- Frankfurter rates API
Other components
- Visitor
Connections 25
- Visitor → Route entry: opens app
- Route entry → Main layout: routes home
frontend/src/main.jsx - Route entry → Auth layout: routes auth
frontend/src/main.jsx - Route entry → Home screen: routes home
frontend/src/main.jsx - Route entry → Registration screen: routes registration
frontend/src/main.jsx - Route entry → Login screen: routes login
frontend/src/main.jsx - Main layout → Site header: renders
frontend/src/layouts/MainLayout.jsx - Home screen → Converter: renders
frontend/src/components/Home/Home.jsx - Home screen → Chart collection: renders
frontend/src/components/Home/Home.jsx - Converter → Currency selector: renders
frontend/src/components/Converter/Converter.jsx - Converter → Currency and UI data: reads currencies
frontend/src/components/Converter/Converter.jsx - Converter → Currency endpoints: requests conversion
frontend/src/components/Converter/Converter.jsx - Chart collection → Rate chart: renders charts
frontend/src/components/Chart/ChartMain.jsx - Rate chart → Sample chart data: reads sample data
frontend/src/components/Chart/Chart.jsx - Site header → Header controls: renders
frontend/src/components/Header/Header.jsx - Site header → Header index: renders
frontend/src/components/Header/Header.jsx - Site header → Header road: renders
frontend/src/components/Header/Header.jsx - Site header → Notifications: renders
frontend/src/components/Header/Header.jsx - Site header → Profile panel: renders
frontend/src/components/Header/Header.jsx - Notifications → Currency and UI data: reads notifications
frontend/src/components/Header/Notifications.jsx - Profile panel → Currency and UI data: reads profile data
frontend/src/components/Header/Profile.jsx - Currency endpoints → Rate and history service: calls
backend/Controllers/CurrencyController.cs - Rate and history service → Rate response model: deserializes rates
backend/Services/FrankfurterService.cs - Rate and history service → Currency rate model: returns currency rate
backend/Services/FrankfurterService.cs - Rate and history service → Frankfurter rates API: fetches rates
backend/Services/FrankfurterService.cs