How tony-ochieng/expensetracker works
Expense Tracker is a React client backed by an Express API and MySQL. Users register or log in, then manage income and expense records and view dashboard summaries; the README also describes category budgeting, transaction search/sorting, charts, and Excel export. The graph links only relationships visible in excerpts or explicitly documented. Some advertised capabilities have no sampled implementation, and the client’s HTTP calls are not connected to server routes because their runtime wiring was not verified.
Main entry points: App.jsx Route shell · LandingPage.jsx Landing page · authRoutes.js Auth routes · database.js MySQL connection
Components 29
React client
- Route shell
client/src/App.jsx - Login
client/src/components/Login.jsx - Registration
client/src/components/Register.jsx - Dashboard
client/src/pages/Dashboard.jsx - Overview
client/src/pages/Home.jsx - Income view
client/src/pages/Income.jsx - Expense view
client/src/pages/Expense.jsx - Date formatting
client/src/components/date.js - Landing page
client/src/pages/LandingPage.jsx - Navigation
client/src/components/Navbar.jsx - Feature page
client/src/pages/Features.jsx - Contact page
client/src/pages/Contact.jsx - Hero section
client/src/pages/Hero.jsx - Testimonials
client/src/pages/Testimonials.jsx - Footer
client/src/pages/Footer.jsx - Category budgets
client/src/pages - Search and sort
client/src/pages
Express API
- Auth routes
server/routes/authRoutes.js - Income routes
server/routes/incomeRoutes.js - Expense routes
server/routes/expenseRoutes.js - Auth handlers
server/controllers/authControllers.js - Income handlers
server/controllers/incomeControllers.js - Expense handlers
server/controllers/expenseControllers.js - JWT middleware
server/middlewares/auth.js - API server
server/index.js
Persistence and auth
- MySQL connection
server/configs/database.js - Password hashing
server/configs/hashPassword.js
Other components
- User
- MySQL
Connections 32
- User → Route shell: uses
client/src/App.jsx - Route shell → Landing page: routes to
client/src/App.jsx - Route shell → Login: routes to
client/src/App.jsx - Route shell → Registration: routes to
client/src/App.jsx - Route shell → Dashboard: routes to
client/src/App.jsx - Route shell → Overview: routes to
client/src/App.jsx - Route shell → Income view: routes to
client/src/App.jsx - Route shell → Expense view: routes to
client/src/App.jsx - Landing page → Navigation: renders
client/src/pages/LandingPage.jsx - Landing page → Hero section: renders
client/src/pages/LandingPage.jsx - Landing page → Feature page: renders
client/src/pages/LandingPage.jsx - Landing page → Testimonials: renders
client/src/pages/LandingPage.jsx - Landing page → Contact page: renders
client/src/pages/LandingPage.jsx - Landing page → Footer: renders
client/src/pages/LandingPage.jsx - Income view → Date formatting: formats dates
client/src/pages/Income.jsx - Expense view → Date formatting: formats dates
client/src/pages/Expense.jsx - User → Auth routes: authenticates
README.md - API server → Auth routes: mounts
server/index.js - API server → Income routes: mounts
server/index.js - API server → Expense routes: mounts
server/index.js - Auth routes → Auth handlers: dispatches
server/routes/authRoutes.js - Auth routes → JWT middleware: guards user route
server/routes/authRoutes.js - Income routes → Income handlers: dispatches
server/routes/incomeRoutes.js - Expense routes → Expense handlers: dispatches
server/routes/expenseRoutes.js - Auth handlers → MySQL connection: queries
server/controllers/authControllers.js - Income handlers → MySQL connection: queries
server/controllers/incomeControllers.js - Expense handlers → MySQL connection: queries
server/controllers/expenseControllers.js - Auth handlers → Password hashing: hashes passwords
server/controllers/authControllers.js - MySQL connection → MySQL: connects
server/configs/database.js - User → Category budgets: sets budgets
README.md - User → Search and sort: searches and sorts
README.md - Expense view → User: exports spreadsheet
client/src/pages/Expense.jsx