{"id":25641939,"url":"https://github.com/trivedikavya/food-redistribution-platform","last_synced_at":"2026-04-29T16:04:09.615Z","repository":{"id":278687177,"uuid":"927868998","full_name":"trivedikavya/Food-Redistribution-Platform","owner":"trivedikavya","description":"Food Redistribution Console base platform ","archived":false,"fork":false,"pushed_at":"2025-02-21T05:47:33.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T06:24:40.158Z","etag":null,"topics":["console-application","consolebase-application","contributions-welcome","kavyatrivedi","numpy","open-source","python3","sklearn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trivedikavya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-05T17:16:35.000Z","updated_at":"2025-02-21T05:47:37.000Z","dependencies_parsed_at":"2025-02-21T06:34:53.334Z","dependency_job_id":null,"html_url":"https://github.com/trivedikavya/Food-Redistribution-Platform","commit_stats":null,"previous_names":["trivedikavya/food-redistribution-platform"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivedikavya%2FFood-Redistribution-Platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivedikavya%2FFood-Redistribution-Platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivedikavya%2FFood-Redistribution-Platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivedikavya%2FFood-Redistribution-Platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trivedikavya","download_url":"https://codeload.github.com/trivedikavya/Food-Redistribution-Platform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240271532,"owners_count":19774859,"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","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":["console-application","consolebase-application","contributions-welcome","kavyatrivedi","numpy","open-source","python3","sklearn"],"created_at":"2025-02-23T05:16:33.021Z","updated_at":"2025-10-29T05:40:36.497Z","avatar_url":"https://github.com/trivedikavya.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Food Redistribution Platform\n\n[![Python Version](https://img.shields.io/badge/python-3.7%2B-blue.svg)](https://www.python.org/downloads/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n## Overview\nThe Food Redistribution Platform is an innovative **console-based application** designed to address food waste and hunger issues. It connects donors, NGOs, and volunteers in a streamlined process to facilitate the efficient redistribution of surplus food to those in need. The platform incorporates blockchain technology for data integrity and AI-powered matching to optimize food distribution.\n\n## Features\n\n### Basic Features\n\n1. User Management\n   - Multi-role user system (Donor, NGO, Volunteer, Admin)\n   - Secure registration with input validation\n   - Login system with hashed password storage\n\n2. Donation Management\n   - Add and track food donations\n   - View available donations\n   - Claim donations (for NGOs)\n\n3. Task Management\n   - Create delivery tasks for claimed donations\n   - View and accept tasks (for Volunteers)\n   - Track task completion\n\n4. Reward System\n   - Point-based system for user actions\n   - Leaderboard to display user rankings\n\n5. Notifications\n   - Crisis mode alerts\n   - Admin-sent notifications\n\n### Advanced Features\n\n1. Blockchain Integration\n   - Basic blockchain implementation for donation tracking\n   - Ensures data integrity and transparency\n\n2. AI-powered Food Matching\n   - Uses TF-IDF and cosine similarity algorithms\n   - Matches donations with NGO needs for optimal distribution\n\n3. Crisis Mode\n   - Toggleable mode for prioritizing urgent donations\n   - Affects notification system and task prioritization\n\n## Technologies Used\n\n1. Python 3.7+\n2. JSON (for data storage)\n3. hashlib (for password hashing)\n4. scikit-learn (for TF-IDF vectorization and cosine similarity)\n5. numpy (for numerical operations)\n6. re (for input validation using regular expressions)\n\n\n## File Structure\n```\n│-- main.py                         # Main entry point  (Just run this all things will work easy [Use replit])\n│-- food_redistribution_data.json    # Stores application data (will create Automatically)\n│-- README.md                        # Project documentation\n\n```\n-- Replit is a online compiler which is next level for python \n\n## Outputs \u0026 Working\n\n### Application Startup \n\n```python\nWelcome to the Food Redistribution Platform\n1. Login\n2. Create Account\n3. Exit\nEnter your choice: \n```\n### User Registration \u0026 Login \n```python\nEnter your name: leo\nEnter your email: leooo@example.com\nSet your password (min 8 characters, include numbers or symbols): Pass@123\nSelect Your Role:\n1. Donor\n2. NGO\n3. Volunteer\n4. Admin\nEnter your choice: 1\nAccount created successfully!\n\nFOR Login \n\nEnter your email: leooo@example.com\nEnter your password: Pass@123\nWelcome back, leo !\n```\n### Donor Role: Sample Console Output\n\n```python\nWelcome to the Food Redistribution Platform\n\nLogin\nCreate Account\nExit\nEnter your choice: 2\n\nEnter your name: John Doe\nEnter your email: john@example.com\nSet your password: *****\n\nSelect Your Role:\n\nDonor\nNGO\nVolunteer\nAdmin\nEnter your choice: 1\n\nAccount created successfully!\n\nWelcome to the Food Redistribution Platform\n\nLogin\nCreate Account\nExit\nEnter your choice: 1\n\nEnter your email: john@example.com\nEnter your password: *****\n\nWelcome back, John Doe!\n\nDashboard\n\nAdd Donation\nView Donations\nView Notifications\nView Rewards\nView Leaderboard\nLogout\nEnter your choice: 1\n\nAdd Donation\nEnter the food item: Bread\nEnter the quantity: 10 loaves\nEnter the expiry date (YYYY-MM-DD): 2025-01-15\n\nDonation added successfully!\n\nDashboard\n\nAdd Donation\nView Donations\nView Notifications\nView Rewards\nView Leaderboard\nLogout\nEnter your choice: 2\n\nCurrent Donations\n\nBread - 10 loaves (Expires: 2025-01-15)\n\nDashboard\n\nAdd Donation\nView Donations\nView Notifications\nView Rewards\nView Leaderboard\nLogout\nEnter your choice: 4\n\nYour current reward points: 25\n\nDashboard\n\nAdd Donation\nView Donations\nView Notifications\nView Rewards\nView Leaderboard\nLogout\nEnter your choice: 5\n\nLeaderboard\n\nJohn Doe - 25 points\n\nDashboard\n\nAdd Donation\nView Donations\nView Notifications\nView Rewards\nView Leaderboard\nLogout\nEnter your choice: 0\n\nLogging out...\n```\n\n### Admin Role: Sample Console Output\n\n```python\nWelcome to the Food Redistribution Platform\n\nLogin\nCreate Account\nExit\nEnter your choice: 2\n\nEnter your name: AdminUser\nEnter your email: admin@example.com\nSet your password: *****\n\nSelect Your Role:\n\nDonor\nNGO\nVolunteer\nAdmin\nEnter your choice: 4\n\nAccount created successfully!\n\nWelcome to the Food Redistribution Platform\n\nLogin\nCreate Account\nExit\nEnter your choice: 1\n\nEnter your email: admin@example.com\nEnter your password: *****\n\nWelcome back, AdminUser!\n\nAdmin Dashboard\n\n1. View All Users\n2. View All Donations\n3. Activate/Deactivate Crisis Mode\n4. View Leaderboard\n5. Manage Notifications\n6. AI Food Matching\n7. Logout\nEnter your choice: 1\n\nAll Registered Users:\n\nJohn Doe (Donor)\nHelping Hands NGO (NGO)\nAlex Smith (Volunteer)\n\nAdmin Dashboard\n\n1. View All Users\n2. View All Donations\n3. Activate/Deactivate Crisis Mode\n4. View Leaderboard\n5. Manage Notifications\n6. AI Food Matching\n7. Logout\n\nEnter your choice: 2\n\nAll Donations:\n\nBread - 10 loaves (Donor: John Doe | Claimed by: Helping Hands NGO)\nRice - 25 kg (Donor: Jane Donor | Pending)\n\nAdmin Dashboard\n\n1. View All Users\n2. View All Donations\n3. Activate/Deactivate Crisis Mode\n4. View Leaderboard\n5. Manage Notifications\n6. AI Food Matching\n7. Logout\n\nEnter your choice: 3\n\nCrisis Mode Status: OFF\n\nDo you want to activate Crisis Mode? (yes/no): yes\n\nCrisis Mode Activated! Notifications sent to all users.\n\nAdmin Dashboard\n\n1. View All Users\n2. View All Donations\n3. Activate/Deactivate Crisis Mode\n4. View Leaderboard\n5. Manage Notifications\n6. AI Food Matching\n7. Logout\n\nEnter your choice: 5\n\nSend Notification to All Users:\nEnter your message: Urgent! Volunteers are needed for emergency food distribution.\n\nNotification sent successfully!\n\nAdmin Dashboard\n\n1. View All Users\n2. View All Donations\n3. Activate/Deactivate Crisis Mode\n4. View Leaderboard\n5. Manage Notifications\n6. AI Food Matching\n7. Logout\nEnter your choice: 6\n\nSuggested match: Rice 5kg -\u003e NGO_X needs food\n\nAdmin Dashboard\n\n1. View All Users\n2. View All Donations\n3. Activate/Deactivate Crisis Mode\n4. View Leaderboard\n5. Manage Notifications\n6. AI Food Matching\n7. Logout\nEnter your choice: 7\n\nLogging out... \n```\n###  NGO Role: Sample Console Output\n\n```python\nWelcome to the Food Redistribution Platform\n\nLogin\nCreate Account\nExit\nEnter your choice: 2\n\nEnter your name: Helping Hands NGO\nEnter your email: ngo@example.com\nSet your password: *****\n\nSelect Your Role:\n\nDonor\nNGO\nVolunteer\nAdmin\nEnter your choice: 2\n\nAccount created successfully!\n\nWelcome to the Food Redistribution Platform\n\nLogin\nCreate Account\nExit\nEnter your choice: 1\n\nEnter your email: ngo@example.com\nEnter your password: *****\n\nWelcome back, Helping Hands NGO!\n\nDashboard\n\nView Donations\nClaim Donation\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 1\n\nCurrent Donations\n\nBread - 10 loaves (Expires: 2025-01-15)\nRice - 25 kg (Expires: 2025-01-20)\n\nDashboard\n\nView Donations\nClaim Donation\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 2\n\nClaim Donation\nEnter the donation number you want to claim: 1\n\nDonation claimed successfully! Thank you for making a difference.\n\nDashboard\n\nView Donations\nClaim Donation\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 3\n\nYour Notifications\n\nCrisis Mode is now active! Prioritize urgent donations.\nDonor John Doe added 10 loaves of Bread available for pickup.\n\nDashboard\n\nView Donations\nClaim Donation\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 4\n\nLeaderboard\n\nHelping Hands NGO - 50 points\nJohn Doe - 25 points\n\nDashboard\n\nView Donations\nClaim Donation\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 0\n\nLogging out...\n```\n###  Volunteer Role: Sample Console Output \n\n```python\nWelcome to the Food Redistribution Platform\n\nLogin\nCreate Account\nExit\nEnter your choice: 2\n\nEnter your name: Alex Smith\nEnter your email: alex.volunteer@example.com\nSet your password: *****\n\nSelect Your Role:\n\nDonor\nNGO\nVolunteer\nAdmin\nEnter your choice: 3\n\nAccount created successfully!\n\nWelcome to the Food Redistribution Platform\n\nLogin\nCreate Account\nExit\nEnter your choice: 1\n\nEnter your email: alex.volunteer@example.com\nEnter your password: *****\n\nWelcome back, Alex Smith!\n\nDashboard\n\nView Available Tasks\nAccept Delivery Task\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 1\n\nAvailable Tasks\n\nPick up 10 loaves of Bread from John Doe and deliver to Helping Hands NGO.\nPick up 25 kg of Rice from Jane Donor and deliver to Hope Foundation.\n\nDashboard\n\nView Available Tasks\nAccept Delivery Task\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 2\n\nEnter the task number to accept: 1\n\nTask accepted successfully! Please complete the delivery.\n\nDashboard\n\nView Available Tasks\nAccept Delivery Task\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 3\n\nYour Notifications\n\nCrisis Mode Activated! Volunteers are needed urgently.\nTask #1 assigned. Please deliver Bread to Helping Hands NGO.\n\nDashboard\n\nView Available Tasks\nAccept Delivery Task\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 4\n\nLeaderboard\n\nAlex Smith - 30 points\nHelping Hands NGO - 50 points\n\nDashboard\n\nView Available Tasks\nAccept Delivery Task\nView Notifications\nView Leaderboard\nLogout\nEnter your choice: 0\n\nLogging out...\n```\n\n## Contributing\n\nWe welcome contributions to improve the Food Redistribution Platform! Here are some ways you can contribute:\n\n1. Report bugs and suggest features by opening issues\n2. Submit pull requests with bug fixes or new features\n3. Improve documentation\n4. Share ideas for enhancing the platform\n\nPlease read our [Contributing Guidelines](CONTRIBUTING.md) for more details.\n\n## Future Enhancements\n\n- Web or mobile app interface\n- Real-time notifications\n- Integration with mapping services for efficient routing\n- Partnerships with local businesses and organizations\n- Through that rewards you can get benefits in Tax(if Gov collab) or can buy something through that rewards.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\nFor any queries, reach out to `kavyatrivedi931@gmail.com`. 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrivedikavya%2Ffood-redistribution-platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrivedikavya%2Ffood-redistribution-platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrivedikavya%2Ffood-redistribution-platform/lists"}