This is the frontend of the Food Sharing platform built using React and Vite. It allows users to donate food, browse available items, and request food securely.
Frontend: https://food-sharing-app-client-side.netlify.app Backend API: https://b11a11-server-side-tsgm1257.vercel.app
To reduce food waste and connect donors with individuals in need by enabling users to share excess food and allow others to request it.
- Firebase authentication (Email & Google)
- JWT token-based secure API communication
- Add, update, and delete donated food items
- View available food with search and sort options
- Request food and view your own requests
- Responsive layout with mobile support
- Protected routes for authenticated users
- Frontend: React + Vite
- Routing: React Router
- Styling: Tailwind CSS + DaisyUI
- State/Data: TanStack React Query
- Auth: Firebase Authentication
- Animations: motion/react
- Alerts: SweetAlert2
Create a .env file in the root of your client project:
VITE_API_BASE_URL=https://b11a11-server-side-tsgm1257.vercel.app
Firebase Configuration
- VITE_FIREBASE_API_KEY=
- VITE_FIREBASE_AUTH_DOMAIN=
- VITE_FIREBASE_PROJECT_ID=
- VITE_FIREBASE_STORAGE_BUCKET=
- VITE_FIREBASE_MESSAGING_SENDER_ID=
- VITE_FIREBASE_APP_ID=
- Clone the repository
- Run
npm install - Add the
.envfile with the correct backend URL - Run the app locally:
npm run dev
Tanzeem Siddique

