A simple food order app built using React.js and Firebase Realtime Database. Users can explore the menu items, place orders, and have the orders stored in the Firebase database.
- Browse menu items from Firebase.
- Select items and set quantities for orders.
- Calculate the total order amount.
- Submit orders to Firebase Realtime Database.
-
Clone the repository:
git clone https://github.com/your-username/food-order-app.git
-
Navigate to the project directory:
cd food-order-app
-
Install dependencies:
npm install
-
Create a
.env
file:Create a file named
.env
in the root directory of the project and add your Firebase API URL:REACT_APP_FOOD_DB_URL=your_firebase_api_url_here
-
Start the development server:
npm start
-
Open in your browser:
Open
http://localhost:3000
in your web browser to see the app in action.
-
Create a Firebase project:
Go to the Firebase Console (https://console.firebase.google.com/) and create a new project.
-
Get your Firebase API URL:
In the project settings, find your project's Firebase API URL.
-
Add API URL to
.env
:Add the API URL in variable REACT_APP_FOOD_DB_URL to the
.env
file as shown above.
- React.js
- Firebase Realtime Database
- HTML & CSS
This project is licensed under the MIT License. See the LICENSE file for details.