How marcisebestyen/cryptosimulator works
CryptoSimulator is a browser-based cryptocurrency exchange simulator backed by an ASP.NET Core API and PostgreSQL. The principal workflow is an authenticated user browsing crypto prices, trading directly or through P2P offers, and reviewing holdings and transaction history; deposits and account recovery are separate branches. The graph preserves documented capabilities whose implementation excerpts were not provided, but their internal calls are left unconnected. The sampled trade and offer code confirms controller-to-service and service-to-repository flow; other backend links are documented at the API level only.
Main entry points: UnitOfWork.cs Unit of work · App.tsx Web routes · client.ts HTTP client · TradeController.cs Trade API
Components 23
Web application
- Web routes
frontend/src/App.tsx - Sign-in and recovery
frontend/src/pages - Crypto and market views
frontend/src/pages - Trading and offers
frontend/src/pages - Deposit and profile
frontend/src/pages - HTTP client
frontend/src/api/client.ts
API and identity
- Account API
CryptoSimulator/CryptoSimulator/Controllers/UserController.cs - Crypto API
CryptoSimulator/CryptoSimulator/Controllers/CryptoController.cs - Trade API
CryptoSimulator/CryptoSimulator/Controllers/TradeController.cs - Price alerts API
CryptoSimulator/CryptoSimulator/Controllers/AlertsController.cs - Deposit API
CryptoSimulator/CryptoSimulator/Controllers/DepositController.cs - Wallet API
CryptoSimulator/CryptoSimulator/Controllers/WalletController.cs - Identity services
CryptoSimulator/CryptoSimulator/Services
Exchange capabilities
- Prices and history
CryptoSimulator/CryptoSimulator/Services/CryptoService.cs - Price simulation
CryptoSimulator/CryptoSimulator/Services/PriceUpdateService.cs - Spot trading and portfolio
CryptoSimulator/CryptoSimulator/Services/TradeService.cs - P2P offers
CryptoSimulator/CryptoSimulator/Services/OfferService.cs - Transaction history
CryptoSimulator/CryptoSimulator/Services/TransactionService.cs - Alert evaluation
CryptoSimulator/CryptoSimulator/Services/PriceAlertService.cs - Deposits and cards
CryptoSimulator/CryptoSimulator/Services/DepositService.cs
Persistence
- Unit of work
CryptoSimulator/CryptoSimulator/Repositories/UnitOfWork.cs - PostgreSQL
CryptoSimulator/CryptoSimulator/Data/CryptoSimulationDbContext.cs
Other components
- Exchange user
Connections 24
- Exchange user → Web routes: uses
frontend/src/App.tsx - Web routes → Sign-in and recovery: routes to
frontend/src/App.tsx - Web routes → Crypto and market views: routes to
frontend/src/App.tsx - Web routes → Trading and offers: routes to
frontend/src/App.tsx - Web routes → Deposit and profile: routes to
frontend/src/App.tsx - Crypto and market views → HTTP client: requests data
- Trading and offers → HTTP client: submits trades
- Deposit and profile → HTTP client: requests account data
- Sign-in and recovery → HTTP client: requests identity
- Account API → Identity services: handles identity
README.md - Crypto API → Prices and history: serves prices
README.md - Trade API → Spot trading and portfolio: executes trades
CryptoSimulator/CryptoSimulator/Controllers/TradeController.cs - Trade API → Spot trading and portfolio: reads portfolio
CryptoSimulator/CryptoSimulator/Controllers/TradeController.cs - Trade API → P2P offers: dispatches offers
CryptoSimulator/CryptoSimulator/Controllers/TradeController.cs - Price alerts API → Alert evaluation: manages alerts
README.md - Deposit API → Deposits and cards: records deposits
README.md - Wallet API → Unit of work: manages wallets
README.md - Price simulation → Prices and history: updates prices
CryptoSimulator/CryptoSimulator/Program.cs - Spot trading and portfolio → Unit of work: reads and writes
CryptoSimulator/CryptoSimulator/Services/TradeService.cs - P2P offers → Unit of work: reads and writes
CryptoSimulator/CryptoSimulator/Services/OfferService.cs - Transaction history → Unit of work: reads history
README.md - Alert evaluation → Unit of work: reads and writes
README.md - Deposits and cards → Unit of work: reads and writes
README.md - Unit of work → PostgreSQL: persists records
README.md