How ed-roh/finance-app works
Project type and purpose
• This is a MERN-stack (MongoDB, Express, React, Node.js) finance dashboard application.
• Purpose: A single-page React/Vite frontend (“client/”) that fetches KPIs, products, and transactions from an Express/Node backend (“server/”) which in turn persists data to a MongoDB data store.
File structure
• client/
– React + TypeScript app scaffolded with Vite
– src/ contains components (BoxHeader, DashboardBox, FlexBetween), scenes (dashboard, navbar, predictions), global theme files, and state management (state/api.ts, state/types.ts).
– vite.config.ts, tsconfig.json: build & type configurations.
• server/
– index.js launches an Express HTTP server, mounts route modules (routes/kpi.js, product.js, transaction.js).
– models/ define Mongoose schemas (KPI.js, Product.js, Transaction.js).
– data/data.js: sample or seed data.
– fly.toml, .dockerignore: indicates deployment on Fly.io or Docker container.
README for additional insights
• Confirms it’s a finance dashboard tutorial app.
Detail
– Show “routes/transaction.js” connecting to “models/Transaction.js”.
– Scenes (Dashboard, Predictions, Navbar)
– State layer (api.ts) → HTTP client calls
• Deployment context:
– Docker container hosting server and MongoDB URL env vars
– Fly.io edge routing if relevant