This repository contains a simple, real-world food ordering single-page app built with React. It includes menu listing, food item details, a cart, and a basic checkout flow (frontend only). Sign-in and sign-up are handled with Firebase Authentication and Google Sign-In is available.
-
Menu listing and food detail pages
-
Add to cart, update quantities, and remove items
-
Add to favourites, remove from favourites
-
Simple checkout flow (client-side)
-
User account management with Firebase Authentication
- Email/password sign up & sign in
- Google Sign-In (OAuth)
-
Responsive layout (mobile-friendly)
- React (create-react-app or Vite)
- React Router for routing
- Redux for global state (cart + auth)
- Firebase Authentication for user accounts (email/password + Google)
- Tailwind CSS for styling
- Clone the repo and run locally
git clone https://github.com/vilezaz/React-Food-App.git- Move into the project folder
cd React-Food-App- Install dependencies
npm install- Create a Firebase project and enable Authentication
- Go to the Firebase Console (console.firebase.google.com)
- Create a new project (or use an existing one)
- In Authentication → Sign-in method, enable Email/Password and Google
- In Project settings → General, copy the Firebase config for your web app (apiKey, authDomain, projectId, etc.)
- Add your Firebase config to the project
Create a .env.local (or .env) file in the project root and add your Firebase config values. Example:
REACT_APP_FIREBASE_API_KEY=your_api_key
REACT_APP_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
REACT_APP_FIREBASE_PROJECT_ID=your_project_id
REACT_APP_FIREBASE_APP_ID=your_app_id
# optional
REACT_APP_FIREBASE_MEASUREMENT_ID=G-XXXXXX
- Start the dev server
npm run devOpen http://localhost:3000 in your browser.





