Skip to content

jenniferlinet/expense-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Expense Tracker – Full Stack Application

Java (Spring Boot) + React + MongoDB

A simple full-stack Expense Tracker that allows users to add, edit, delete, and view expenses with a clean UI and REST API backend.

πŸš€ Features

Add, edit, delete expenses

View expenses in a table

Total expense calculation

MongoDB database storage

React frontend + Spring Boot backend

REST API with Axios

Fully deployable

🧱 Project Structure expense-tracker/ β”‚ β”œβ”€β”€ backend/
β”‚ β”œβ”€β”€ src/main/java/ β”‚ β”œβ”€β”€ src/main/resources/ β”‚ β”œβ”€β”€ pom.xml β”‚ └── frontend/
β”œβ”€β”€ src/ β”œβ”€β”€ public/ β”œβ”€β”€ package.json

πŸ› οΈ Tech Stack Backend

Java 17

Spring Boot

Spring Web

Spring Data MongoDB

Maven

Frontend

React.js

Axios

HTML/CSS

Database

MongoDB (Local or Atlas)

βš™οΈ Backend Setup cd backend .\mvnw.cmd spring-boot:run

Backend runs at:

http://localhost:8081

Test API:

GET http://localhost:8081/api/expenses

πŸ’» Frontend Setup cd frontend npm install npm start

Frontend runs at:

http://localhost:3000

🌐 API Endpoints

Base URL: http://localhost:8081/api/expenses

Method Endpoint Description GET /api/expenses Get all expenses POST /api/expenses Create new expense PUT /api/expenses/{id} Update an expense DELETE /api/expenses/{id} Delete an expense πŸ“Š Example JSON { "title": "Groceries", "amount": 500, "category": "Food", "date": "2025-12-04", "note": "Vegetables & fruits" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages