This is my final project before I got my Java NC III certification.
It's a Java-based application that allows users to input the ingredients they have on hand and receive a list of possible recipes that can be made with those ingredients. This application is designed to help users efficiently utilize their available ingredients and reduce food waste.
- Ingredient Input: Users can enter the ingredients they have available.
- Recipe Output: The system generates a list of recipes that can be made with the provided ingredients.
- Database Connection: The application connects to a MySQL database to store and retrieve recipes and ingredients.
- User Accounts: The system supports user accounts with roles (Admin, Sales, Logistic) for managing recipes and ingredients.
- Java
- MySQL
- JDBC (Java Database Connectivity)
- Java Development Kit (JDK) 8 or higher
- MySQL Server
- Maven (for dependency management)
-
Clone the repository:
git clone <repository-url> cd G4_SIL_InventorySystem
-
Set up the MySQL database:
- Create a database named
inventory_system_g4. - Import the SQL schema provided in the
sqldirectory (if available).
- Create a database named
-
Configure database connection:
- Update the database connection details in
DbConnect.java:private String url = "jdbc:mysql://localhost:3306/inventory_system_g4"; private String username = "root"; // Change if necessary private String password = ""; // Change if necessary
- Update the database connection details in
-
Build the project using Maven:
mvn clean install
-
Run the application:
java -jar target/inventory-system.jar
- Start the application and log in using your credentials.
- Input the ingredients you have in the provided form.
- View the list of recipes generated based on your input.
Feel free to submit issues or pull requests if you would like to contribute to the project.
This project is licensed under the MIT License.