{"id":23886578,"url":"https://github.com/gah-code/eat-n-split","last_synced_at":"2025-02-23T04:15:16.029Z","repository":{"id":232215002,"uuid":"694971477","full_name":"gah-code/eat-n-split","owner":"gah-code","description":"A simple web application built with React for managing a list of friends and splitting bills with them. ","archived":false,"fork":false,"pushed_at":"2023-11-14T22:44:12.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-04T06:37:02.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gah-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-09-22T04:40:00.000Z","updated_at":"2023-09-26T03:56:12.000Z","dependencies_parsed_at":"2024-04-08T18:06:03.782Z","dependency_job_id":null,"html_url":"https://github.com/gah-code/eat-n-split","commit_stats":null,"previous_names":["gah-code/eat-n-split"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Feat-n-split","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Feat-n-split/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Feat-n-split/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Feat-n-split/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gah-code","download_url":"https://codeload.github.com/gah-code/eat-n-split/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240266917,"owners_count":19774081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-04T06:37:13.058Z","updated_at":"2025-02-23T04:15:15.990Z","avatar_url":"https://github.com/gah-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eat-n-split\n\nA simple web application built with React for managing a list of friends and splitting bills with them.\n\nInitial Data:\n\nThe code starts with an array named initialFriends containing objects that represent friends. Each object includes an id, name, image (avatar URL), and balance (amount of money owed or owed by the friend).\nReact Component:\n\nThe code defines a React functional component called App. This is the main component responsible for rendering the user interface and managing the application's state.\nState Management:\n\nWithin the App component, several pieces of state are managed using React's useState hook. c.clThese include friends (for storing the list of friends), showAddFriend (for controlling the visibility of an \"Add Friend\" form), and selectedFriend (for tracking the currently selected friend).\nUI Components:\n\nThe code defines several UI components, including Button, FriendsList, Friend, FormAddFriend, and FormSplitBill, which are used to structure and render different parts of the application's user interface.\nUser Interaction:\n\nUsers can interact with the application in various ways:\nThey can select a friend from the list, which displays details about the friend and allows them to split a bill with that friend.\nThey can add new friends using the \"Add Friend\" form, providing a name and an image URL.\nUsers can enter bill details and specify who is paying the bill when splitting bills with a selected friend.\nUser Interface:\n\nThe user interface displays a list of friends, each with their name, image, balance information, and buttons for selecting and splitting bills.\nThe application handles bill splitting calculations based on user input.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgah-code%2Feat-n-split","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgah-code%2Feat-n-split","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgah-code%2Feat-n-split/lists"}