Skip to content

Latest commit

ย 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฑ Food Waste Management System

A modern full-stack web platform designed to reduce food wastage by connecting Donors, NGOs, Volunteers, and Admins through a centralized food distribution ecosystem.


๐Ÿš€ Project Overview

The Food Waste Management System enables efficient management of:

  • ๐Ÿฒ Food Donations
  • ๐Ÿ“ฆ NGO Food Requests
  • ๐Ÿšš Volunteer Distribution Tracking
  • ๐Ÿ‘ฅ Role-Based User Management
  • โญ Feedback & Ratings
  • ๐Ÿ“Š Dashboard Analytics

The platform helps reduce food wastage while improving food accessibility for communities in need.


๐Ÿ› ๏ธ Tech Stack

Frontend

  • React.js
  • Tailwind CSS
  • React Router DOM
  • Axios
  • Lucide React Icons

Backend

  • Spring Boot
  • Spring Security
  • JWT Authentication
  • Spring Data JPA
  • REST APIs
  • Hibernate
  • Maven

Database

  • PostgreSQL

API Testing

  • Postman
  • Swagger UI

โœจ Core Features

๐Ÿ” Authentication & Authorization

  • User Registration & Login
  • JWT-Based Authentication
  • Secure Password Encryption
  • Role-Based Access Control

Roles

  • ๐Ÿ‘จโ€๐Ÿ’ผ Admin
  • ๐Ÿฑ Donor
  • ๐Ÿšš Volunteer
  • ๐Ÿข NGO

๐Ÿฒ Food Donation Module

  • Add Food Donations
  • Update Donation Details
  • Track Donation Status
  • Donation History
  • Expiry Tracking

๐Ÿ“ฆ Food Request Module

  • NGOs can create food requests
  • Request urgency levels
  • Request tracking
  • Admin monitoring

๐Ÿšš Distribution Management

  • Assign volunteers to deliveries
  • Track delivery progress
  • Update delivery status
  • Distribution history

โญ Feedback System

  • Submit feedback & ratings
  • User reviews
  • Admin feedback monitoring

๐Ÿ“Š Dashboard Analytics

Each role has a dedicated dashboard with live statistics:

Admin Dashboard

  • Total Users
  • Total Donations
  • Total Requests
  • Total Distributions
  • Total Feedback

Donor Dashboard

  • Active Donations
  • Meals Saved
  • Donation History

NGO Dashboard

  • Nearby Donations
  • Request Tracking
  • Approved Requests

Volunteer Dashboard

  • Assigned Deliveries
  • Completed Deliveries
  • Delivery Updates

๐Ÿงฑ System Architecture

React Frontend
       โ†“
Axios API Calls
       โ†“
Spring Boot REST API
       โ†“
Service Layer
       โ†“
Repository Layer
       โ†“
PostgreSQL Database

๐Ÿ”— REST API Modules

Authentication

POST /api/auth/register
POST /api/auth/login

Donations

GET    /api/donations
POST   /api/donations
PUT    /api/donations/{id}
DELETE /api/donations/{id}

Requests

GET    /api/requests
POST   /api/requests
PUT    /api/requests/{id}
DELETE /api/requests/{id}

Distributions

GET    /api/distributions
POST   /api/distributions
PUT    /api/distributions/{id}
DELETE /api/distributions/{id}

Feedback

GET    /api/feedbacks
POST   /api/feedbacks
DELETE /api/feedbacks/{id}

๐Ÿงช API Testing

APIs tested using:

  • Postman
  • Swagger UI

Swagger URL

http://localhost:8080/swagger-ui/index.html

โš™๏ธ Installation Guide

1๏ธโƒฃ Clone Repository

git clone https://github.com/Abhi-T-A/Food-Waste-Management-System.git

2๏ธโƒฃ Frontend Setup

cd frontend
npm install
npm run dev

Frontend runs on:

http://localhost:5173

3๏ธโƒฃ Backend Setup

cd backend
mvn spring-boot:run

Backend runs on:

http://localhost:8080

๐Ÿ—„๏ธ Database Configuration

Configure PostgreSQL in:

backend/src/main/resources/application.properties

Example:

spring.datasource.url=jdbc:postgresql://localhost:5432/foodwaste
spring.datasource.username=postgres
spring.datasource.password=yourpassword

๐Ÿ“ธ Application Screens

  • Login & Signup
  • Admin Dashboard
  • Donor Dashboard
  • NGO Dashboard
  • Volunteer Dashboard
  • Food Donations
  • Food Requests
  • Distribution Tracking
  • Feedback System

๐Ÿ“š Concepts Used

  • REST APIs
  • CRUD Operations
  • React Components
  • Context API
  • Protected Routes
  • JWT Authentication
  • Spring Security
  • JPA/Hibernate
  • PostgreSQL Relationships
  • Dashboard Analytics

๐Ÿ”ฎ Future Enhancements

  • ๐Ÿ“ฑ Mobile Application
  • โ˜๏ธ Cloud Deployment
  • ๐Ÿ“ง Email Notifications
  • ๐Ÿ“ Real-Time Tracking
  • ๐Ÿค– AI-Based Analytics
  • ๐Ÿ“Š Advanced Reports
  • ๐Ÿ”” Push Notifications

๐Ÿ‘จโ€๐Ÿ’ป Developed By

Abhi T A

Full Stack Developer Project


โญ Support

If you like this project, consider giving it a โญ on GitHub.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages