Skip to content

SouravMitra98/SmartExpenseTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’Έ Smart Expense Tracker

A full-stack Expense Tracker application that helps users track, analyze, and manage their daily expenses with a modern dashboard UI.

Built using React, Tailwind CSS, Node.js, Express, MongoDB, and JWT authentication.


πŸš€ Features

  • πŸ” User Authentication (Register / Login with JWT)
  • πŸ“Š Interactive Dashboard
  • πŸ’° Balance Card (Available Balance, Monthly Limit, Spent)
  • 🧾 Add / Delete Expenses
  • πŸ₯§ Category-wise Expense Pie Chart
  • 🧠 Protected Routes (Session handling)
  • πŸ“± Fully Responsive UI

πŸ–ΌοΈ Screenshots

πŸ” Login Page

Login Page

πŸ“ Register Page

Register Page

πŸ“Š Dashboard Overview

Dashboard Dashboard

βž• Add Expense

Add Expense


πŸ› οΈ Tech Stack

Frontend

  • βš›οΈ React (Vite)
  • 🎨 Tailwind CSS
  • πŸ“Š Recharts
  • πŸ”„ Axios
  • πŸ” React Router DOM

Backend

  • 🟒 Node.js
  • πŸš€ Express.js
  • πŸƒ MongoDB + Mongoose
  • πŸ” JWT Authentication
  • πŸ”‘ bcryptjs

πŸ“ Project Structure

expense-tracker/ β”‚ β”œβ”€β”€ backend/ β”‚ β”œβ”€β”€ controllers/ β”‚ β”œβ”€β”€ models/ β”‚ β”œβ”€β”€ routes/ β”‚ β”œβ”€β”€ middlewares/ β”‚ └── server.js β”‚ β”œβ”€β”€ frontend/ β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ components/ β”‚ β”‚ β”œβ”€β”€ pages/ β”‚ β”‚ β”œβ”€β”€ api/ β”‚ β”‚ └── App.jsx β”‚ └── main.jsx β”‚ └── README.md

βš™οΈ Environment Variables

Create a .env file in the backend directory:

PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret 

βš™οΈ Environment Setup

▢️ Run Locally
1️⃣ Clone the Repository

git clone https://github.com/your-username/expense-tracker.git
cd SmartExpenseTracker

2️⃣ Backend Setup
cd backend
npm install jsonwebtoken bcryptjs express mongoose
npm run dev

3️⃣ Frontend Setup
cd frontend
npm install
npm run dev
npm install recharts
npm install -D tailwindcss @tailwindcss/postcss autoprefixed
npm install vite

Frontend: http://localhost:5173 Backend: http://localhost:5000

About

# πŸ’Έ Smart Expense Tracker A full-stack **Expense Tracker** application that helps users track, analyze, and manage their daily expenses with a modern dashboard UI. Built using **React, Tailwind CSS, Node.js, Express, MongoDB**, and **JWT authentication**.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages