Skip to content

yawningvoid/sugar-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e94f64b · Sep 26, 2024

History

22 Commits
Sep 9, 2024
Sep 9, 2024
Jan 16, 2024
Jul 23, 2024
Jul 23, 2024
Sep 26, 2024
Aug 27, 2024
Aug 27, 2024
Aug 27, 2024
Jul 23, 2024
Aug 27, 2024
Aug 27, 2024
Aug 27, 2024
Aug 27, 2024
Jul 23, 2024
Jul 23, 2024
Aug 27, 2024
Aug 27, 2024
Jul 23, 2024
May 30, 2024
Jan 16, 2024
Jan 16, 2024

Repository files navigation

Sugar Counter App

A simple React-based application for tracking and managing daily sugar intake by adding sweet items.

Table of Contents

Introduction

This application allows users to monitor their daily sugar consumption by selecting sweets from a predefined list and creating custom items. Users can search for specific items, add them to their daily count, and view the total sugar intake.

Features

  • Search for sweets
  • Add selected items to daily count
  • Remove items from the count
  • Modal for adding custom items and additional details on each sweet

Usage

  1. View Total Sugar Count: The main screen displays the total sugar intake in grams.

  2. Search for Sweets: Use the search bar to find specific sweet items.

  3. Add and Remove Items: Click on sweets to add them to the daily count. Click again to remove them.

  4. Customize Items using Modal:

    • Click on the three dots button on a sweet to open the menu.
    • Click on the "Edit" button to open the edit modal.
  5. Edit Items:

    • Modify the item name, description, grams of sugar per item, and the number of items consumed.
    • Click the "Save" button to apply changes or "Cancel" to discard them.

Installation

  1. Clone the repository: git clone https://github.com/yawningvoid/sugar-counter.git
  2. Install dependencies: npm install
  3. Run the application: npm start

Dependencies

Development

For local development, follow the installation steps and run the development server using npm start.

Contribution

Contributions are welcome! Feel free to submit issues or pull requests.