How jason-hn/cash-flow works
Project Type and Purpose
• The frontend is a React 18 single‑page app built with Vite and TailwindCSS. The backend is a Node.js/Express REST API using JWT authentication and MongoDB for persistence.
File Structure Analysis
• Top‑level split into two folders:
• client/ – React code, divided into src/components, src/pages, src/api (REST wrappers), src/store (state management via React Query), src/utils.
• server/ – Express server code, with middleware (auth), models (Mongoose schemas), utils/constants, and a single server.js entry.
• Config and build files: Vite, Tailwind, Netlify for frontend; npm scripts and .env for backend.
• No microservices or secondary backends – a monolithic API.
Key Insights from README
• Uses React Query on the client to fetch REST endpoints exposed by the Express server.
• MongoDB URI and JWT secret configured via environment variables.
• Frontend served either by Vite (dev) or deployed to Netlify; backend runs on Node/Express (port 3000) and connects to MongoDB (Atlas or local).