Skip to content

UnityInFlow/expense-tracker-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expense Tracker — Frontend

Pre-built React + TypeScript frontend for the Expense Tracker workshop. Connect it to your Spring Boot backend and see your API come alive!

Quick Start

git clone https://github.com/UnityInFlow/expense-tracker-frontend.git
cd expense-tracker-frontend
npm install
npm run dev

Open http://localhost:5173 in your browser.

Prerequisites

How It Works

This frontend calls your REST API:

Action HTTP Request Endpoint
List expenses GET /expenses
Add expense POST /expenses
Delete expense DELETE /expenses/{id}
Get total GET /expenses/total

The app shows a connection indicator — green when your backend is running, red when it's not.

Features

  • Add, list, and delete expenses
  • Total amount display
  • Dark/light theme (follows system preference)
  • Real-time API connection status
  • Error handling for when backend is down
  • Responsive design (works on mobile)

Tech Stack

  • React 18 + TypeScript
  • Vite
  • Tailwind CSS
  • Native fetch API

Related

About

Expense Tracker — React + TypeScript frontend. Pre-built UI for the Spring Boot workshop.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors