A React-based web app for sharing available food with others. Users can view available food items, search for specific items, and view detailed information about each food.
- Search foods by name
- Add / Delete / Update food with Crud Operation
- Manage my foods
- Protected routes using PrivateRoute
- View food details
- Toast notifications on successful actions
- Lottie animation support
- Clean & responsive UI with Tailwind CSS
Package |
---|
react |
react-router-dom |
axios |
@tanstack/react-query |
react-toastify |
lottie-react |
sweetalert2 |
tailwindcss |
- react
- react-router
- mongodb
- axios
- tailwind
- daisy
- express
- dotenv
- toast
- lottie
src/
│
├── components/
│ ├── AvailableFoods.jsx
│ ├── ManageFoodCard.jsx
│ └── LottieAnimation.jsx
│
├── pages/
│ ├── Home/
│ │ ├── Home.jsx
│ │ ├── FeaturedFoods.jsx
│ │ ├── FoodDetails.jsx
│ │ ├── UpdatedFoodDetails.jsx
│ └── Private Page/
│ ├── AddFood.jsx
│ ├── ManageMyFoods.jsx
│ └── MyFoodRequest.jsx
│
├── routes/
│ ├── router.jsx
│ └── PrivateRoute.jsx
│
└── App.jsx
GET /available-foods
– Get all food itemsGET /food-details/:id
– Get single food item by IDPUT /updated-food-details/:id
– Update food itemDELETE /manage-my-foods/:id
– Delete foodPOST /add-food
– Add new food