Skip to content

Fatialnd/splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Friends Expense Splitter

Overview

Friends Expense Splitter is a simple React application that helps users manage and split expenses with friends. It allows users to add friends, keep track of who owes whom, and split bills easily.

Features

  • Add and display a list of friends
  • Select a friend to view balance details
  • Split a bill between the user and a selected friend
  • Keep track of outstanding balances

Technologies Used

  • React (useState hook for state management)
  • JavaScript (ES6+ features)
  • HTML & CSS

Components

1. App

The main component that manages state and renders the different parts of the application.

  • Stores friends list
  • Toggles the add friend form
  • Handles friend selection and bill splitting

2. Button

A reusable button component that simplifies button rendering across the application.

3. FriendsList

Displays the list of friends and allows the user to select a friend.

4. Friend

Represents an individual friend, displaying their name, profile picture, and balance status.

5. FormAddFriend

A form to add new friends by entering their name and profile picture URL.

6. FormSplitBill

A form to split a bill with the selected friend, allowing the user to specify the bill amount and who is paying.

How to Use

  1. Start the application.
  2. Click "Add Friend" to add a new friend.
  3. Select a friend from the list to view their balance.
  4. Use the "Split Bill" form to divide expenses.

Setup Instructions

  1. Clone the repository.
  2. Install dependencies:
    npm install
  3. Start the application:
    npm start

Screenshot 2025-02-04 at 22 52 42

Screenshot 2025-02-04 at 22 52 54

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published