Skip to content

About

A logic-heavy MERN dashboard optimized via unified transaction schemas. Features JWT-secured REST APIs, real-time Recharts analytics, and automated Excel reporting.Using it by myself for having a good relation with my finances by maintaining college gym and game budget under control.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’° MoneyTrack

React Node.js MongoDB Express Docker Vercel Render License

A production-ready full-stack MERN Personal Finance Tracker that helps users securely manage income, expenses, financial reports, and analytics through an intuitive dashboard.

MoneyTrack is actively used by me for managing my own college budget, gym expenses, gaming purchases, and daily finances, making it a continuously evolving real-world project rather than just a demo application.


πŸš€ Live Demo

🌐 Frontend

https://money-track-frontend-pearl.vercel.app

βš™ Backend API

https://moneytrack-backend-2sir.onrender.com


πŸ“Έ Dashboard

Dashboard

MoneyTrack is fully responsive across desktop, tablet, and mobile devices while maintaining consistent functionality and user experience.


πŸ— Architecture

                React + Vite
                     β”‚
                     β–Ό
              Axios REST API
                     β”‚
                     β–Ό
            Node.js + Express.js
                     β”‚
         JWT Authentication Middleware
                     β”‚
                     β–Ό
             Controllers & Business Logic
                     β”‚
                     β–Ό
               MongoDB Atlas

✨ Features

πŸ” Authentication & Security

  • βœ… JWT Authentication
  • βœ… Protected REST APIs
  • βœ… User Registration
  • βœ… Secure Login & Logout
  • βœ… Profile Management
  • βœ… Password Update

πŸ’Έ Transaction Management

  • βœ… Add Income
  • βœ… Add Expenses
  • βœ… Edit Transactions
  • βœ… Delete Transactions
  • βœ… Category Management
  • βœ… Search & Filtering
  • βœ… Monthly Tracking
  • βœ… Weekly Tracking
  • βœ… Transaction History
  • βœ… User-specific Data Isolation

MoneyTrack uses a single Transaction schema with a type field (income or expense) instead of maintaining separate collections, significantly reducing duplicate business logic and improving maintainability.


πŸ“Š Analytics Dashboard

  • βœ… Financial Dashboard
  • βœ… Monthly Reports
  • βœ… Weekly Reports
  • βœ… Income Overview
  • βœ… Expense Overview
  • βœ… Savings Overview
  • βœ… Category-wise Analytics
  • βœ… Interactive Charts
  • βœ… Dynamic Financial Insights

πŸ“ Excel Export

  • βœ… Export Transactions to Excel
  • βœ… Analyze Financial Records Offline
  • βœ… Category-wise Export Support

🎨 Frontend Features

  • βœ… Responsive UI
  • βœ… Interactive Charts using Recharts
  • βœ… Toast Notifications
  • βœ… Modular React Components
  • βœ… Dynamic Filtering
  • βœ… Mobile Friendly Design

πŸ“· Preview

Dashboard

Dashboard


Income

Income


Expenses

Expense


Excel Export

Excel Export


Tablet View

Tablet


Mobile View

Mobile


βš™ Tech Stack

Frontend Backend Database Deployment
React.js Node.js MongoDB Atlas Vercel
Vite Express.js Mongoose Render
Tailwind CSS JWT Docker
Axios bcryptjs Docker Compose
Recharts Validator

πŸš€ Deployment

Frontend

  • Vercel

Backend

  • Render

Database

  • MongoDB Atlas

πŸ“ Project Structure

MoneyTrack
β”‚
β”œβ”€β”€ Backend
β”‚   β”œβ”€β”€ config
β”‚   β”œβ”€β”€ controllers
β”‚   β”œβ”€β”€ middleware
β”‚   β”œβ”€β”€ models
β”‚   β”œβ”€β”€ routes
β”‚   β”œβ”€β”€ utils
β”‚   β”œβ”€β”€ server.js
β”‚   └── package.json
β”‚
β”œβ”€β”€ Frontend
β”‚   β”œβ”€β”€ src
β”‚   β”‚   β”œβ”€β”€ assets
β”‚   β”‚   β”œβ”€β”€ components
β”‚   β”‚   β”œβ”€β”€ pages
β”‚   β”‚   β”œβ”€β”€ utils
β”‚   β”‚   └── App.jsx
β”‚   └── package.json
β”‚
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ README.md
└── assets

πŸ”‘ Environment Variables

Backend

PORT=5000
MONGO_URL=your_mongodb_connection_string
JWT_SECRET=your_secret_key
TOKEN_EXPIRY=7d

Frontend

VITE_API_BASE=http://localhost:5000

For production:

VITE_API_BASE=https://moneytrack-backend-2sir.onrender.com

πŸ’» Installation

Clone the repository

git clone https://github.com/martand-codes/MoneyTrack.git

cd MoneyTrack

Backend

cd Backend

npm install

npm start

Frontend

cd Frontend

npm install

npm run dev

πŸ“‘ API Endpoints

User APIs

Method Endpoint
POST /api/user/register
POST /api/user/login
GET /api/user/me
PUT /api/user/profile
PUT /api/user/password

Transaction APIs

Method Endpoint
POST /api/transaction/add
GET /api/transaction/get
PUT /api/transaction/update/:id
DELETE /api/transaction/delete/:id
GET /api/transaction/overview
GET /api/transaction/downloadexcel

🧠 Engineering Concepts Implemented

  • REST API Design
  • JWT Authentication
  • Express Middleware
  • MVC Architecture
  • MongoDB Schema Design
  • Protected Routes
  • CRUD Operations
  • Client-Server Architecture
  • React State Management
  • Environment Variable Management
  • Responsive UI Development
  • Docker Containerization
  • Production Deployment
  • Excel File Generation
  • Reusable Component Architecture

🚧 Challenges Solved

During development, several real-world engineering problems were encountered and resolved.

Transaction Architecture

Initially, separate logic existed for income and expense management. The application was refactored to use a unified Transaction schema with a type enum, significantly reducing duplicated business logic and improving scalability.


Authentication Flow

Implemented secure JWT authentication with protected middleware and synchronized authentication state between React and Express.


Chart Rendering

Resolved responsive rendering issues in Recharts by restructuring conditional rendering logic and dashboard state management.


Environment Configuration

Configured separate development and production environments using Vite environment variables, Docker, Render, and Vercel deployments.


Route Protection

Designed middleware to ensure authenticated users can only access and modify their own financial records.


Deployment

Successfully deployed the frontend on Vercel and backend on Render, while integrating MongoDB Atlas as the production database.


πŸš€ Future Improvements

  • GitHub Actions CI/CD
  • Budget Planning
  • Recurring Transactions
  • AI-powered Financial Insights
  • Expense Forecasting
  • Dark Mode
  • Push Notifications
  • Progressive Web App (PWA)
  • Kubernetes Deployment
  • Role-Based Authorization

πŸ“š Lessons Learned

Building MoneyTrack strengthened my understanding of:

  • Full-stack MERN Development
  • REST API Design
  • Authentication & Authorization
  • MongoDB Data Modeling
  • React State Management
  • Docker Workflows
  • Deployment using Render & Vercel
  • Production Debugging
  • Modular Software Architecture

This project continues to evolve as I explore more scalable backend architectures and improve the overall user experience.


πŸ‘¨β€πŸ’» Connect With Me

LinkedIn

https://www.linkedin.com/in/martand-prakhar-a04904315/

GitHub

https://github.com/martand-codes


πŸ‘¨β€πŸ’» Author

Martand Prakhar

Second-Year Information Science Engineering Student

Passionate about Full Stack Development, Backend Engineering, System Design, Open Source, and Software Engineering.

About

A logic-heavy MERN dashboard optimized via unified transaction schemas. Features JWT-secured REST APIs, real-time Recharts analytics, and automated Excel reporting.Using it by myself for having a good relation with my finances by maintaining college gym and game budget under control.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages