Skip to content

Utilizes JDBC and MySQL to implement a CLI-based app that allows users to record and view the food they eat

Notifications You must be signed in to change notification settings

iDoc1/Food-Log-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Food Log App

Introduction

This app allows a user to record details about foods they ate on specific dates and run a data report to view historical data about eating habits. The main functionality is described below:

  • User can add meals they ate on specific dates
  • User view meal history on specific dates or within a range of dates
  • User can view all entries containing a specific food
  • The user can edit or delete any food log entry
  • Caloric and food type details can be added for a specific food
  • A historical data report can be viewed for meals eaten yesterday or over the past week

I built this app as a personal project to learn the fundamentals of using the JDBC API and MySQL, strengthen my Java coding skills, and to further my experience with Object-Oriented Programming.

Before Installing

Before using this program, you must have Java, Maven, and MySQL installed. I built this program using Java 11, but Java 7+ should be sufficient.

How to Install

  1. Navigate to the "sql" directory and run the "database_definition.sql" script to build the backend database.

  2. Clone this GitHub repo to a location on your local machine.

  3. Navigate to the local repo and install all dependencies using Maven. This can be accomplished using the following command:

    mvn package
    
  4. Finally, compile and run the FoodLogMain.java file. This file is the entry point for the user and will allow you to begin using the app.

Using the App

The below screenshots show a basic overview of the app's functionality.

Main Menu
Main Menu
Add an entry to the food log
Add an entry
View yesterday's meals
View yesterday meals
Add details about a specific food
Add food details
View data report for yesterday
View data report

About

Utilizes JDBC and MySQL to implement a CLI-based app that allows users to record and view the food they eat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages