Welcome to the repository of the "FoodAid" project, a platform that connects NGOs with supermarket chains and restaurants to facilitate the donation of surplus food nearing its expiration date, thereby helping to combat hunger in Mexico.
The main goal of this project is to reduce food waste and help those in need by providing a platform where NGOs can request and receive food donations from restaurants and supermarkets.
- Order Management: Restaurants can view and manage orders placed by NGOs, as well as order details to facilitate delivery.
- Order Generation for NGOs: NGOs can request donations based on an AI model that takes into account the number of people the food will be distributed to.
- Order Editing: NGOs can edit automatically generated orders to tailor them to their specific needs.
- Intuitive Interface: The platform features an easy-to-use interface for users to navigate and efficiently use the functions.
The project is developed using the following technologies:
- Framework: Next.js
- Frontend: HTML, CSS, JavaScript, React.js
- Backend: Node.js, Express.js, MongoDB
- AI (Artificial Intelligence): AI model for order generation
- Additional Tools: Tailwind CSS
- Clone this repository to your local machine.
- Install frontend and backend dependencies using npm or yarn.
- Configure environment variables as needed (e.g., for MongoDB database connection, database name, etc.).
- Run npm run dev
- POST /recommendations?quantity=10
/provider-orders /inventories /inventories /consumer-orders
A Sequential Neural Network trained on a custom dataset to classify restaurants that are eligible to fulfill the NGOs needs. The initial layer is composed of 5 features (distance, %_protein, %_carbs, kg_needed, kg_storage).
getRecommendation/
people
: The number of people the NGOs are expecting to feed.latitude
: Latitude degree coordinates of the NGO position.longitude
: Longitude degree coordinates of the NGO position.
Content-Type
: application/json
The response is a JSON object that includes the restaurant with the highest score based on the model. Additionally, there will be a package suggestion of the food supply for the restaurant.
conda create -n env_name --file conda_packages.txt
export FLASK_APP=main.py
flask run