{"id":22731532,"url":"https://github.com/abulgit/racipe-database","last_synced_at":"2026-02-12T00:02:09.895Z","repository":{"id":186509476,"uuid":"675283912","full_name":"abulgit/Racipe-Database","owner":"abulgit","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-06T12:29:02.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T01:37:45.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abulgit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-06T12:11:43.000Z","updated_at":"2023-08-06T12:11:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"d732e63d-2ad1-4123-8fe2-d959f239ea9b","html_url":"https://github.com/abulgit/Racipe-Database","commit_stats":null,"previous_names":["abulgit/racipe-database"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abulgit/Racipe-Database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abulgit%2FRacipe-Database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abulgit%2FRacipe-Database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abulgit%2FRacipe-Database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abulgit%2FRacipe-Database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abulgit","download_url":"https://codeload.github.com/abulgit/Racipe-Database/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abulgit%2FRacipe-Database/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272659283,"owners_count":24971607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T19:28:33.064Z","updated_at":"2026-02-12T00:02:04.870Z","avatar_url":"https://github.com/abulgit.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Recipe Storage Project\n\n\nA simple recipe storage system that allows users to store and access their favorite recipes. The project includes a MySQL database to store recipe information, including the recipe name, instructions, and related ingredients.\n\n## Getting Started\n\n### Prerequisites\n\nTo run this project, you will need the following:\n\n1. **MySQL Server:** Install and set up a MySQL server on your local machine or a remote server.\n\n### Installation\n\n1. Clone this repository to your local machine:\n\n```bash\ngit clone [[https://github.com/abulgit/Racipe-Database.git]\ncd recipe-Database\n```\n\n2. **Update MySQL Credentials:**\n\n   - Open the `DB.sql` file and replace `'your_mysql_host'`, `'your_mysql_username'`, and `'your_mysql_password'` with your actual MySQL server details.\n\n3. **Create the Database and Tables:**\n\n   - Open a MySQL client, such as MySQL Workbench or the MySQL command-line tool.\n   - Execute the contents of the `recipe_storage.sql` file to create the necessary database and tables.\n\n4. **Populate the Database with Random Data:**\n\n   - Open a MySQL client and execute the contents of the `insert_random_data.sql` file to insert 1000 random recipes and their ingredients into the database.\n\n5. **Project Structure:**\n\n   - The main SQL code is in the `recipe_storage.sql` file, including the database schema and the stored procedure to insert random data.\n   - The sample Python script provided in the `populate_with_python.py` file can also be used to insert random data into the database. Make sure to install the `MySQL-connector-python` package using `pip` before running the script.\n\n## Usage\n\n1. **Accessing the Database:**\n\n   - You can use your preferred MySQL client (e.g., MySQL Workbench, phpMyAdmin) to interact with the `recipes_db` database and its tables.\n\n2. **Storing Recipes:**\n\n   - To add your recipes, you can execute SQL `INSERT` statements on the `recipes` and `ingredients` tables. Each recipe in the `recipes` table will have a unique ID, a name, instructions, and a timestamp for when it was created. Ingredients are related to their corresponding recipes via the `recipe_id` foreign key.\n\n3. **Retrieving Recipes:**\n\n   - To retrieve recipes, you can use SQL `SELECT` queries to fetch the desired information from the `recipes` and `ingredients` tables.\n\n4. **Updating and Deleting Recipes:**\n\n   - You can use SQL `UPDATE` and `DELETE` statements to modify or remove existing recipes from the database.\n\n## Contributing\n\nContributions are welcome! If you have any suggestions or improvements, please feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabulgit%2Fracipe-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabulgit%2Fracipe-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabulgit%2Fracipe-database/lists"}