Skip to content

Mohnish27-dev/Byte-Sized-Brains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ RescueBite - Fighting Hunger, Reducing Waste

Bridging the gap between food donors and charities to reduce food waste and combat hunger

Frontend Backend Database

πŸ“Œ Quick Links

PPT Video Pitch

RescueBite Banner

πŸ“– Table of Contents

✨ Features

  • User Authentication: Secure login/signup for donors and recipients
  • Personalized Dashboards: Custom interfaces for donors and charities
  • Food Posting: Donors can easily post surplus food details
  • Real-time Updates: Instant notifications for available food
  • Responsive Design: Works on all device sizes
  • MongoDB Integration: Efficient data storage and retrieval

πŸ› οΈ Tech Stack

Frontend

HTML5 CSS3 JavaScript

Backend

Node.js Express.js MongoDB Mongoose


Database: MongoDB

  • MongoDB (with Mongoose ODM)

πŸ“‚ Project Structure

Project Byteverse/
β”œβ”€β”€ frontend/
β”‚ β”œβ”€β”€ home.html
β”‚ β”œβ”€β”€ login.html
β”‚ β”œβ”€β”€ dashboard.html
β”‚ β”œβ”€β”€ thankyou.html
β”‚ β”œβ”€β”€ donor-dashboard.html
β”‚ β”œβ”€β”€ recipient-dashboard.html
β”‚ β”œβ”€β”€ about.html
β”‚ β”œβ”€β”€ donor.html
β”‚ β”œβ”€β”€ recipient.html
β”‚ β”œβ”€β”€ terms and condition.html
β”‚ └── js/
β”‚ β”œβ”€β”€ dashboard.js
β”‚ β”œβ”€β”€ donor-dashboard.js
β”‚ β”œβ”€β”€ donor.js
β”‚ β”œβ”€β”€ login.js
β”‚ └── recipient-dashboard.js
β”œβ”€β”€ backend/
β”‚ β”œβ”€β”€ server.js
β”‚ β”œβ”€β”€ package.json
β”‚ β”œβ”€β”€ routes/
β”‚ β”‚ β”œβ”€β”€ food.js
β”‚ β”‚ β”œβ”€β”€ register.js
β”‚ β”‚ └── login.js
β”‚ └── models/
β”‚ β”œβ”€β”€ food_data.js
β”‚ └── registration_data.js
└── assets/
β”œβ”€β”€ images/
└── icons/

βš™οΈ Setup & Installation

  1. Clone the repository ```bash
    git clone https://github.com/Mohnish27-dev/Project-Byteverse.git
    cd Project Byteverse/pre>
      
  2. Install dependencies
    npm install
    npm install cors mongoose express
  3. Start the development server
    node server.js
  4. Access the app
    Open http://localhost:3000 in your browser.

πŸ“Š Database Schema (MongoDB)

const userSchema = new mongoose.Schema({
  name: { type: String, required: true },
  email: { type: String, required: true, unique: true },
  
});
  const foodSchema=new mongoose.Schema({
  name: {
        type: String,
        required: true,
        trim: true
    },
    quantity: {
        type: Number,
        required: true,
        min: 1
    },
    category: {
        type: String,
        required: true,
    },
    expirydate: {
        type: Date,
        required: true
    },
    description: {
        type: String,
        trim: true
    },
    pickupTime: {
        type: String,
        required: true
    },
    storage: {
        type: String,
        required: true
    }
  })

πŸ“Έ Screenshots

Homepage SignUp Page Dashboard Donate About
Homepage SignUp Dashboard Donate About

πŸš€ Usage

How to Use RescueBite Platform

πŸ‘¨β€πŸ³ For Food Donors

  1. Register/Login: Create an account as a food donor
  2. Post Food: Fill out the food donation form with details:
    • Food type and quantity
    • Preparation and expiry times
    • Special instructions or allergens
    • Pickup location and availability
  3. Manage Donations:
    • View your active donations on dashboard
    • Update donation status when claimed
    • View recipient details when matched

πŸ›οΈ For Charities/Recipients

  1. Register/Login: Create an account as a verified food recipient
  2. Browse Available Food:
    • Search by location, food type, or quantity
    • View detailed food information
    • Check preparation and expiry times
  3. Request Food:
    • Submit pickup request for desired items
    • Coordinate pickup time with donor
    • Receive confirmation details

πŸ”„ Workflow Diagram

  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     β”‚      β”‚                     β”‚      β”‚                     β”‚
β”‚    Food Donor       │─────▢│   RescueBite        │─────▢│  Food Recipient     β”‚
β”‚  (Restaurants/      β”‚      β”‚    Platform        β”‚      β”‚  (Charities/NGOs)   β”‚
β”‚   Individuals)      │◀─────│                     │◀─────│                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚                          β”‚                          β”‚
        β”‚ 1. Posts available food  β”‚ 2. Lists available food  β”‚
        │─────────────────────────▢│─────────────────────────▢│
        β”‚                          β”‚                          β”‚
        β”‚ 6. Receives confirmation β”‚ 5. Updates food status   β”‚
        │◀─────────────────────────│◀─────────────────────────│
        β”‚                          β”‚                          β”‚
        β”‚                          β”‚ 3. Browses & requests    β”‚
        β”‚                          │─────────────────────────▢│
        β”‚                          β”‚                          β”‚
        β”‚                          β”‚ 4. Confirms pickup       β”‚
        β”‚                          │◀─────────────────────────│

RescueBite platform workflow from donation to distribution

Made with ❀️ to reduce food waste and fight hunger


🀝 Contribute

Feel free to fork, suggest improvements, or report issues!

πŸ“§ Contact: [email protected]

🍲 Share Food, Save Lives! 🌍


About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published