GithubHelp home page GithubHelp logo

ankitamalik22 / hsfd-system Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11.34 MB

Hotel Surplus Food Distribution System

Home Page: https://hsfd.onrender.com/login

JavaScript 90.58% HTML 0.67% CSS 8.75%
javascript mern-stack express mongodb nodejs react

hsfd-system's Introduction

Hotel Surplus Food Distribution System

The Hotel Surplus Food Distribution System is a platform that bridges the gap between hotels with surplus food and volunteers willing to distribute it to those in need.

This system streamlines the process, making it easy for hotels and volunteers to collaborate effectively.

How It Works

Step 1: Registration & Login

Hotels and volunteers can register and log in to the platform.

Screenshot (206) Screenshot (207)

Step 2: Hotel Adds The Surplus Food

Hotels with surplus food can list the available items on the platform, ensuring no food goes to waste.

Screenshot (211)

Step 3: Volunteer Requests The Available Food

Volunteers can browse and request available surplus food items from hotels in their vicinity.

Screenshot (220)

Step 4: Hotel Accepts The Request

Hotels review requests and accept them, making the surplus food available for pickup.

Step 5: Volunteer Picks Up The Food

Volunteers coordinate with the hotel to pick up the surplus food and distribute it to those in need.

Technologies Used

  • Node.js
  • Express.js
  • MongoDB
  • React.js
  • Redux
  • Node Mailer
  • Cloudinary
  • Material-UI

hsfd-system's People

Contributors

ankitamalik22 avatar

Watchers

 avatar

hsfd-system's Issues

Backend issue

Updated Data Not Saving In MongoDB

GET Food Details

  • router.route("/food/:id").get(getfoodDetails)
  • here the request status is false by default.
  • "status": false,
    PostMan Response
{
    "success": true,
    "food": {
        "_id": "6310c11a25659a73a9323135",
        "name": "chowmin",
        "description": "this is desc..",
        "ratings": 0,
        "category": "chineese",
        "Quantity": 1,
        "owner": "hotel belmuri",
        "image": [],
        "requests": [
            {
                "user": "63105a8dfca318c1972bcc29",
                "name": "Vollunteer",
                "comment": "want this for poor people",
                "status": false,
                "_id": "6310c527bed4bba6a608b29f"
            },
            {
                "user": "632884611816c85c14edcd2f",
                "name": "Ankita",
                "comment": "want this for poor people",
                "status": false,
                "_id": "6329cec0b2b6e6c02927d3e6"
            }
        ],
        "createdAt": "2022-09-01T14:26:34.396Z",
        "__v": 2,
        "numOfRequests": 2
    }
}

PUT | Accept Food request

PostMan Response

{
    "success": true,
    "food": {
        "_id": "6310c11a25659a73a9323135",
        "name": "chowmin",
        "description": "this is desc..",
        "ratings": 0,
        "category": "chineese",
        "Quantity": 1,
        "owner": "hotel belmuri",
        "image": [],
        "requests": [
            {
                "user": "63105a8dfca318c1972bcc29",
                "name": "Vollunteer",
                "comment": "want this for poor people",
                "status": true,
                "_id": "6310c527bed4bba6a608b29f"
            },
            {
                "user": "632884611816c85c14edcd2f",
                "name": "Ankita",
                "comment": "want this for poor people",
                "status": false,
                "_id": "6329cec0b2b6e6c02927d3e6"
            }
        ],
        "createdAt": "2022-09-01T14:26:34.396Z",
        "__v": 2,
        "numOfRequests": 2
    }
}

It's Changed to "status": true ! But the problem is it's not saving in MongoDb .

When i'm requesting get food details again it's showing "status": false

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.