A simple React-based application for tracking and managing daily sugar intake by adding sweet items.
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.
- 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
-
View Total Sugar Count: The main screen displays the total sugar intake in grams.
-
Search for Sweets: Use the search bar to find specific sweet items.
-
Add and Remove Items: Click on sweets to add them to the daily count. Click again to remove them.
-
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.
-
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.
- Clone the repository:
git clone https://github.com/yawningvoid/sugar-counter.git
- Install dependencies:
npm install
- Run the application:
npm start
For local development, follow the installation steps and run the development server using npm start
.
Contributions are welcome! Feel free to submit issues or pull requests.