Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🍽️ Food Rescue Network (Spring MVC & Hibernate) A full-stack Java web application built to bridge the gap between food surplus and hunger. This platform provides a complete workflow for donors, recipients, and volunteers to coordinate and efficiently rescue food waste.

This project was built from scratch using a classic Spring MVC architecture, Hibernate for database management, and JSP with Bootstrap for the frontend.

📸 Key Features & Screenshots This application is built on a robust role-based system, providing a unique and secure experience for each type of user.

Four-Role System: Unique dashboards and functionality for Donors (restaurants, grocers), Recipients (NGOs, shelters), Volunteers (drivers), and Admins.

Complete Donation Workflow: Donors list food, Recipients claim it, and Volunteers accept and complete the deliveries.

Admin Management Panel: A secure admin dashboard to verify/unverify new users (Recipients/Volunteers), delete accounts, and monitor all platform donations and rescues in real-time.

User Profile Management: All users can edit their own profile details, including contact info, address, and password.

Dynamic UI: The interface for features like registration and dashboards changes based on the user's role.

Pop-up Notifications: A modern "toast" notification system provides pop-up feedback for all major actions (e.g., "Donation Claimed!", "Profile Updated!", "Invalid Login").

(This is where you would add screenshots of your application!) ``

🛠️ Technology Stack Backend: Java (J2EE), Spring MVC, Spring Framework

Database: MySQL

ORM: Hibernate

Frontend: JSP, JSTL, Bootstrap 5, HTML/CSS

Build & Dependency: Apache Maven

Server: Apache Tomcat

🚀 Getting Started Follow these instructions to get a copy of the project up and running on your local machine for development and testing.

Prerequisites (What to Install) You will need the following software installed on your system:

Java (JDK): Version 1.8 (Java 8) or higher.

Apache Maven: To build the project and manage dependencies.

MySQL Server: A running MySQL database (v5.7 or 8.0+).

IDE: An IDE that supports Java EE, such as Eclipse IDE for Java EE Developers or IntelliJ IDEA Ultimate.

Server: Apache Tomcat (v7.0 or higher).

Installation & Setup Clone the repository:

Bash

git clone https://github.com/himanshu8872/FoodRescueNetwork-Spring.git cd FoodRescueNetwork-Spring Create the MySQL Database:

Open your MySQL client (e.g., MySQL Workbench, phpMyAdmin).

Create a new, empty database. The default name expected by the project is foodrescuedb.

SQL

CREATE DATABASE foodrescuedb; Configure Database Connection:

Open the project in your IDE.

Navigate to src/main/resources/config.xml.

Find the bean with the name="ds" (DriverManagerDataSource).

Update the username and password properties to match your local MySQL credentials:

XML

Build and Deploy:

Automatic (Recommended):

In Eclipse, right-click the project.

Select Run As > Run on Server.

Choose your configured Tomcat server.

Manual (with Maven):

Run mvn clean install from the command line in the project's root folder. This will create a FoodRescueNetwork.war file in the target folder.

Manually deploy this .war file to your Tomcat server.

Access the Application:

Once the server is running, open your browser and go to:

http://localhost:8080/FoodRescueNetwork/

🔐 Default Admin Login A default administrator account is hard-coded into the application for initial access.

Email: admin@gmail.com

Password: admin

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages