SurplusServe transforms food waste into community wealth. In a world where one-third of all food is wasted while millions go hungry, we've built the ultimate platform connecting food donors with those in need. We bridge the gap between surplus food and food insecurity through intelligent location services and impactful tracking.
Powered by location intelligence, interactive maps, and beautiful modern design, SurplusServe creates sustainable ecosystems where businesses reduce waste, communities gain access to nutritious food, and everyone contributes to environmental sustainability. This isn't just another food app; it's a movement that turns excess into access, waste into worth.
- β¨ Features
- πΈ Preview
- π Project Structure
- βοΈ Technologies Used
- π Getting Started
- π§ Usage Guide
- π― Core Features
- π Customization
- π οΈ Future Enhancements
- π€ Contributing
- π License
- π Credits
- π’ Author
- π― Food Location Finder β Discover nearby food banks, shelters, and community centers
- πΊοΈ Interactive Map Integration β Real-time geolocation with OpenStreetMap
- π Impact Tracking Dashboard β Visualize meals saved, COβ reduced, and people helped
- π± Easy Donation Interface β Simple form for food donation planning
- π Food Availability Browser β Find available food resources in your area
- π± Environmental Analytics β Calculate waste reduction and carbon impact
- π€ User Profiles β Personalized dashboards with achievement tracking
- π± PWA Ready β Installable progressive web app for mobile use
- β¨ Modern UI Design β Clean, intuitive interface with orange/white theme
| Home Page | Food Locations |
|---|---|
![]() |
![]() |
| Donate Food | Receive Food |
|---|---|
![]() |
![]() |
| Impact Tracker | Profile Page |
|---|---|
![]() |
![]() |
SurplusServe/
βββ πSurplusServe_
βββ πfrontend/
β βββ πpublic/
β β βββ πicons/ # PWA application icons
β β β βββ icon-48.png
β β β βββ icon-72.png
β β β βββ icon-96.png
β β β βββ icon-144.png
β β β βββ icon-192.png
β β β βββ icon-256.png
β β β βββ icon-512.png
β β β
β β βββ πpreview/ # Application screenshots
β β β βββ Image_1.webp
β β β βββ Image_2.webp
β β β βββ Image_3.webp
β β β βββ Image_4.webp
β β β βββ Image_5.webp
β β β βββ Image_6.webp
β β β
β β βββ _redirects # Netlify routing rules
β β βββ manifest.webmanifest # PWA manifest file
β β
β βββ πsrc/
β β βββ πcomponents/ # Reusable UI components
β β β βββ BottomNav.tsx # Bottom navigation bar
β β β βββ Header.tsx # Page header component
β β β
β β βββ πpages/ # Application pages
β β β βββ HomePage.tsx # Landing/dashboard page
β β β βββ DonateFood.tsx # Food donation interface
β β β βββ ReceiveFood.tsx # Food receiving interface
β β β βββ FindLocations.tsx # Location finder with maps
β β β βββ ImpactTracker.tsx # Impact analytics dashboard
β β β βββ ProfilePage.tsx # User profile management
β β β
β β βββ App.tsx # Main application component
β β βββ index.css # Global styles
β β βββ main.tsx # Application entry point
β β βββ vite-env.d.ts # Vite type definitions
β β
β βββ .gitignore # Git ignore rules
β βββ eslint.config.js # ESLint configuration
β βββ index.html # HTML entry point
β βββ package-lock.json # Dependency lock file
β βββ package.json # Frontend dependencies
β βββ postcss.config.js # PostCSS configuration
β βββ tailwind.config.js # Tailwind CSS configuration
β βββ tsconfig.app.json # TypeScript app config
β βββ tsconfig.json # TypeScript configuration
β βββ tsconfig.node.json # TypeScript node config
β βββ vite.config.ts # Vite build configuration
β
βββ .gitattributes # Git attributes
βββ LICENSE # MIT License file
βββ README.md # Project Documentation| Technology | Purpose | Version |
|---|---|---|
| React | Frontend framework | 18+ |
| TypeScript | Type-safe development | 5.x |
| Vite | Build tool and dev server | 4.x |
| Tailwind CSS | Utility-first styling | 3.x |
| React Leaflet | Interactive maps | 4.x |
| Framer Motion | Animations and transitions | 10.x |
| Lucide React | Icon library | 0.x |
| OpenStreetMap | Mapping tiles and data | - |
| Overpass API | Location data queries | - |
- Node.js (v18 or higher)
- npm or yarn package manager
- Modern web browser with geolocation support
- Clone The Repository
git clone https://github.com/yourusername/SurplusServe.git
cd SurplusServe/SurplusServe_/frontend- Install Dependencies
npm install- Start Development Server
npm run dev- Open Your Browser
Navigate to
http://localhost:5173to access SurplusServe!
# Create production build
npm run build
# Preview production build locally
npm run preview- Navigate to Donate Page β Click "Donate Food" from home or navigation
- Explore Food Details β View different food categories and quantities
- Find Nearby Locations β Use the location finder to identify drop-off points
- Plan Your Donation β Understand the impact of your contribution
- Track Your Impact β See how your donation helps the community
- Browse Available Resources β Check "Receive Food" for nearby assistance
- Use Location Finder β Find food banks, shelters, and community centers
- Filter Options β Search by distance, food type, or service hours
- Get Directions β Use integrated maps for navigation
- Access Resources β Connect with local food assistance programs
- View Impact Dashboard β Understand the scale of food waste and hunger
- Track Community Progress β See collective impact metrics
- Learn About Solutions β Discover how to get involved locally
- Share Resources β Help spread awareness about food assistance
- Build Your Profile β Track your personal contributions and engagement
- Real-time Geolocation: Find nearby food banks, shelters, and community centers using browser geolocation
- Interactive Maps: Powered by OpenStreetMap with custom food assistance icons
- Smart Radius Search: Adjust search distance from 1km to 25km
- Category Filtering: Filter by food bank, restaurant, grocery, bakery, or cafe
- One-tap Navigation: Direct integration with Google Maps for turn-by-turn directions
- Live Distance Calculation: Real-time distance calculations from your current location
- Comprehensive Analytics:
const impactMetrics = { mealsSaved: 12,847, co2Reduced: 8.2, // tons peopleHelped: 3,200, partnersJoined: 127, waterSaved: 256 // thousand liters };
- Visual Progress Charts:
- Monthly growth tracking with interactive graphs
- Environmental equivalent visualizations
- Top contributor rankings and recognition
- Personalized Statistics: Individual contribution tracking and goal setting
- Personal Dashboard: Track engagement, saved locations, and preferences
- Interactive Editing: Photo upload and profile information management
- Activity History: Log of location searches and resource views
- Settings Control: Notification preferences and display options
- Achievement System: Visual badges for community engagement
- Installable: Add to home screen on iOS and Android devices
- Responsive Design: Optimized for mobile, tablet, and desktop
- Fast Performance: Built with Vite for optimal loading speeds
- Cross-platform: Works across all modern browsers
- Offline-ready: Service worker integration for reliable access
- Modify
tailwind.config.jsto customize the orange/white color scheme - Update PWA manifest in
public/manifest.webmanifestfor app branding - Replace icons in
public/icons/directory with your organization's branding - Adjust animation speeds and transitions in Framer Motion components
- Extend the Overpass API queries in
FindLocations.tsxfor more location types - Add custom location categories specific to your region
- Integrate additional public food assistance databases
- Create region-specific food bank directories
- Modify navigation structure in
BottomNav.tsxfor your specific use case - Add new page components in the
pages/directory - Extend the impact tracking metrics to include local measurements
- Customize the map markers and popups for your organization
- Real-time Food Availability β Dynamic updates of available food resources
- Donation Scheduling β Calendar-based donation planning and coordination
- Volunteer Management β Volunteer opportunity listings and sign-ups
- Food Safety Resources β Guidelines and training materials
- Multilingual Interface β Support for multiple languages
- Accessibility Features β Enhanced support for users with disabilities
- Community Forums β Discussion boards for food assistance topics
- Educational Resources β Learning materials about food waste reduction
- Mobile Notifications β Push notifications for nearby food resources
- Social Sharing β Easy sharing of resources on social media
We welcome contributions to help fight food waste and feed communities!
- Fork the repository
- Create a feature branch
git checkout -b feature/improved-food-location-finder- Commit your changes
git commit -m "π½οΈ Add: Enhanced location filtering capabilities"- Push to the branch
git push origin feature/improved-food-location-finder- Open a Pull Request
- πΊοΈ Location data accuracy and coverage expansion
- π± Mobile user experience improvements
- π¨ UI/UX design enhancements
- π Accessibility and inclusivity features
- π Analytics and data visualization
- π§ Performance optimization
- π Documentation and user guides
- π§ͺ Testing and quality assurance
This Project is licensed under the MIT License. Feel free to explore and build upon it.
Β© 2025 Pranav Khalate
Permission Is Hereby Granted, Free Of Charge, To Any Person Obtaining A Copy...
- OpenStreetMap Contributors β Providing the mapping tiles and location data
- Overpass API β Enabling real-time queries for food assistance locations
- React Leaflet Team β Interactive mapping components for React
- Tailwind CSS β Utility-first CSS framework for rapid UI development
- Lucide Icons β Beautiful, consistent icon library
- Framer Motion β Production-ready animations for React
- Local Food Banks & Community Organizations β Inspiration for real-world impact
Built With β€οΈ For A Hunger-Free World
If SurplusServe helps you connect with food resources or understand food waste issues, please consider giving it a βοΈ on GitHub. Your support helps raise awareness about food insecurity and inspires more developers to create solutions for social good.
At SurplusServe, We Believe That Technology Should Serve Humanity. Every Line Of Code, Every Interface Design, Every Location Pin On Our Map Represents A Potential Connection Between Surplus Food And Someone In Need.
Join Us In Building A World Where No Food Is Wasted And No Person Goes Hungry.
π± "The Greatest Threat To Our Planet Is The Belief That Someone Else Will Save It."
β Robert Swan
Technical Note: This application currently operates as a frontend demonstration with mock data and real-time location services. The interactive maps, geolocation features, and impact tracking provide a complete user experience that showcases how technology can connect food resources with community needs.





