Spare A Bite is a community-driven food-sharing platform designed to reduce food waste by connecting donors and recipients. Built with React and Firebase, it offers a seamless way to share surplus food while providing a modern, responsive user experience.
- Authentication System: Secure login/signup with Firebase Auth
- Food Sharing: Add, edit, and manage food items
- Food Browsing: View all available food with detailed info
- Request Food: Authenticated users can request available food
- User Reviews: View all submitted feedback from users
- Donor Info: See who shared each food item
- Protected Routes: Access controls using PrivateRoute component
- Modern UI/UX: Built with TailwindCSS, DaisyUI, and animations
reactreact-router-domfirebaseaxios@tanstack/react-querytailwindcssdaisyuiframer-motionsweetalert2react-hot-toastdate-fnslottie-reactreact-fast-marquee
Follow these steps to run Spare A Bite on your local machine:
git clone https://github.com/your-username/spare-a-bite.git
cd spare-a-bitenpm install
# or
yarn install- Create a Firebase project at Firebase Console
- Enable Email/Password Authentication
- Replace the Firebase config in
src/firebase/firebase.config.jswith your own:
const firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR_AUTH_DOMAIN",
projectId: "YOUR_PROJECT_ID",
storageBucket: "YOUR_STORAGE_BUCKET",
messagingSenderId: "YOUR_SENDER_ID",
appId: "YOUR_APP_ID"
};npm run dev
# or
yarn devThe app will be available at http://localhost:3000