This is a simple CRUD application for managing recipe and their ingredients. The application is designed to store data in a MySQL database and provides an easy-to-use user interface for creating, reading, updating, and deleting recipes and ingredients.
The application has three tables:
- FoodCategory - This table contains the categories of recipes. The table has the following columns:
- id - The unique identifier of the category.
- food_category_name - The name of the category.
- Food - This table contains the Dish. The table has the following columns:
- id - The unique identifier of the dish.
- food_name - The name of the dish.
- food_description - The description of the dish.
- food_category_id - The foreign key to the Category table.
- Ingredient - This table contains the ingredients of the dishs. The table has the following columns:
- id - The unique identifier of the ingredient.
- ingredient_name - The name of the ingredient.
- ingredient_amount - The amout of the ingredient.
- ingredient_unit - The unit of the ingredient.
- ingredient_food_id - The foreign key to the Food table.
The application provides the following functionality:
- View all categories, recipes, and ingredients in separate pages.
- Create new categories, recipes, and ingredients.
- Edit existing categories, recipes, and ingredients.
- Delete existing categories, recipes, and ingredients.
To run the application, you need to have the following:
- PHP version 8.1 or later.
- MySQL database.
- Web server like Apache or Nginx.
To install the application, follow these steps:
- Clone the repository or download the source code.
- Create a new MySQL database.
- Copy the .env file
cp .env.example .env
- Configure the database connection by editing the .env file in the root directory of the application.
- Run :
and then run :
composer install
php artisan migrate
- Then run :
php artisan serve
- To test, run :
php artisan test
This is a simple and easy-to-use CRUD application for managing recipes and their ingredients. It provides all the basic functionality you need to store, edit, and delete your recipes and ingredients. Feel free to customize and extend it to fit your needs.