Giter Club home page Giter Club logo

hsfd-system's Introduction

๐Ÿ’ซ About Me:

I'm Ankita, on a journey to master the MERN stack and create dynamic web applications.

๐Ÿ’ป Tech Stack:

Java HTML5 JavaScript CSS3 C Heroku Vercel NPM Next JS NodeJS JWT React React Router Redux TailwindCSS Apache MySQL MongoDB Bootstrap Express.js

๐Ÿ“Š GitHub Stats:



๐Ÿ† GitHub Trophies


@ankitamalik's Holopin board


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.