FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

MSohailShahzad1/Expense-Splitter: An app which easily manages the shared expenses between roommates · GitHub

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📈 Expense Splitter – MERN Stack Project

💡 Project Overview

Expense Splitter is a full-stack web application built using the MERN stack (MongoDB, Express.js, React, Node.js) with Tailwind CSS for styling and Chart.js for visualizing shared expenses.

It helps roommates, friends, or groups track shared expenses, split costs, and see who owes whom, with a user-friendly interface and clear debt summaries.


🚀 Features

  • ✅ Add expenses with name and amount
  • ✅ View all expenses in a compact list
  • ✅ Auto-calculate individual balances and shares
  • ✅ Visual summary of who owes whom
  • ✅ Pie chart using Chart.js to show debt flows
  • ✅ Update and delete individual expenses
  • ✅ Responsive design with Tailwind CSS
  • ✅ No page reloads — all updates handled via shared React state

🧰 Tech Stack

Frontend Backend Others
React.js Node.js Tailwind CSS
Chart.js (via react-chartjs-2) Express.js dotenv
Axios / fetch MongoDB (via Mongoose) GitHub Desktop

🧠 How It Works

  1. User adds an expense with name and amount
  2. Expense is stored in MongoDB
  3. React state updates in real-time — no reload needed
  4. Split logic calculates who overpaid/underpaid
  5. Debt graph shows "who owes whom" visually
  6. Users can edit/delete any expense using buttons and popup forms

📁 Folder Structure

/client     → React frontend (Tailwind + Chart.js)
/server     → Express backend (MongoDB + REST API)
/README.md  → Project info

📷 Screenshots

(You can add screenshots of your app interface here before committing to GitHub)


🛠️ To Run Locally

  1. Clone the repo:
git clone https://github.com/yourusername/expense-splitter.git
cd expense-splitter
  1. Setup .env file:
Add .env file in the backend folder
Add your PORT and MONGO_URL in it
Add .env file in the frontend 
Add your VITE_API_URL in it. 
  1. Setup server:
cd backend
npm install
npm start
  1. Setup client:
cd client
npm install
npm run dev

✅ Why This Project?

This app showcases:

  • Full-stack MERN development
  • Shared state handling
  • Real-world utility
  • React component structuring
  • Data visualization

Great for internship, job applications, and portfolio!

About

An app which easily manages the shared expenses between roommates

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL