MealShare addresses the issue of food waste and lack of access to nutritious food for vulnerable populations. Restaurants and grocery stores often have excess food that goes to waste, while food banks and other charitable organizations struggle to provide adequate nutrition to those in need. This platform aims to streamline the donation process, reducing food waste and providing nutritious food to those who need it most.
- Laravel Framework for backend development.
- MySQL as the database system.
- Bootstrap for frontend development.
- Request Portal: Food banks can open requests to ask for donations with requirements.
- Scheduling Portal: Restaurants and grocery stores can accept requests and schedule donations. These schedules will be updated for food banks.
- Inventory Management: Inventory will be managed on the food banks' side.
- History Management: All history of the donations and requests will be kept on the food banks' side.
Our code structure is modular and flexible, organized into models, views, controllers, and components.
- Donations: Represents the details of donations received by the food banks.
- FoodItems: Contains details of the inventory of food banks.
- Requests: Contains details of donations requested by food banks.
- Users: Contains all information about the users registered in this platform.
We use controllers to manage CRUD operations of the respective database tables:
- Donation Controller
- FoodItem Controller
- Request Controller
- User Controller
We use components to create reusable UI elements and make the code easy to read and reusable.
Views handle the rendering of the user interface. For instance:
- Dashboard: Shows user-specific information.
- Login: Handles user login.
- Profile setting: Allows users to update their personal details.
- Register: Handles user registration.
- Requests, Inventory, Donations: Provide information about ongoing and past events.
We use routes to pass data to views and controllers flexibly.
- PHP
- MySQL
- Composer
- Laravel Framework
- Clone the repo
git clone https://github.com/MSunaam/MealShare.git
- Navigate to project folder
cd MealShare
- Install Composer dependencies
composer install
- Create a copy of your
.env
filecp .env.example .env
- Generate an app encryption key
php artisan key:generate
- Create an empty database for our application
- In the
.env
file, add database information - Migrate the database
php artisan migrate
- Start the local development server
php artisan serve
Visit http://localhost:8000
in your web browser.
We appreciate your contributions! Please follow these steps:
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Muhammad Sunaam - msunaam2002@gmail.com