How wizzyyy17/finance-web-app works
This is a browser-based personal-finance app: users register or log in, then manage expenses and income and view calculated savings and charts. The browser client calls authentication and expense APIs; API handlers use user and expense models backed by MongoDB. The excerpts show these domain stages and the client-side dashboard flow. Evidence is limited: the tree is flat, while server.js imports route and database paths not present in it, so those server-to-module links are not asserted.
Main entry points: expenses.js Expense API · script.js Finance UI · auth.js Authentication API · User.js User records
Components 13
Browser client
- Finance UI
script.js - Dashboard flow
script.js - Expense views
script.js - Expense charts
script.js
API
- HTTP server
server.js - Authentication API
auth.js - Expense API
expenses.js
Identity and records
- Token middleware
authMiddleware.js - User records
User.js - Expense records
Expense.js
Persistence
- Mongo connector
db.js
Other components
- User
- MongoDB
Connections 14
- User → Finance UI: uses
script.js - Finance UI → HTTP server: HTTP requests
- Finance UI → Authentication API: auth requests
- Finance UI → Expense API: expense requests
- Finance UI → Dashboard flow: loads
script.js - Dashboard flow → Expense views: renders
script.js - Dashboard flow → Expense charts: builds
script.js - Dashboard flow → Expense API: fetches expenses
- Dashboard flow → Expense API: fetches income
- Authentication API → User records: reads and saves
auth.js - Expense API → Token middleware: guards routes
expenses.js - Expense API → Expense records: reads and writes
expenses.js - Expense API → User records: reads and updates
expenses.js - Mongo connector → MongoDB: connects
db.js