A Java-based calorie counter application that allows users to keep track of the calories they consume on a daily basis. The application comes with a number of features that make it easy for users to keep track of their calorie intake and meet their dietary goals.
- Add different types of food with the corresponding number of calories
- Set daily goals for calorie intake
- Calculate total calories consumed
- View daily, weekly, or monthly summaries of calorie intake
- Save and view past food entries
- Edit and delete past food entries
- Search for food entries by name or date
- Java Development Kit (JDK) 1.8 or higher
- Apache Maven 3.6.0 or higher
- Clone the repository to your local machine
git clone
https://github.com/kputhanangadi/calpal.git
- Navigate to the root directory of the project
cd calorie-counter
- Build the project using Maven
mvn clean package
- Run the application
java -jar target/calorie-counter-1.0-SNAPSHOT.jar
Upon launching the application, you will be presented with a menu of options. Here's how to use each one:
-
Add Food: Allows you to add a new food item to your daily log. You will be prompted to enter the name of the food and its corresponding number of calories.
-
Set Daily Goals: Allows you to set a daily goal for the number of calories you want to consume.
-
View Daily Summary: Shows a summary of the total calories consumed for the current day.
-
View Weekly Summary: Shows a summary of the total calories consumed for the current week.
-
View Monthly Summary: Shows a summary of the total calories consumed for the current month.
-
View Past Entries: Shows a list of all past food entries, with the ability to edit or delete them.
If you'd like to contribute to the development of this application, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bug fix
- Make your changes and commit them
- Push your changes to your fork
- Create a pull request