Skip to content

This is a Food Order App built with React. Customers can adjust the quantity of each meal and add the meals to their cart. They can also view the cart by clicking the cart button. Click the order button will show the user information form. This app uses Google Firebase as its backend server to fetch and post order data with HTTP request.

hsin0724/Food-Order-APP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Food-Order-APP

專案簡介

This is a Food Order App built with React. Customers can adjust the quantity of each meal and add the meals to their cart. They can also view the cart by clicking the cart button. Click the order button will show the user information form. This app uses Google Firebase as its backend server to fetch and post order data with HTTP request.

這是一個使用 React 前端框架構建的點餐APP,並使用 Google Firebase 作為後端 Server 進行 fetch 和 post 訂單資料等 HTTP request。

APP目前功能:

  • 選擇餐點數量並將餐點添加到購物車中。
  • 查看購物出內容。
  • 確認點餐並填寫買家訊息表單。
  • 送出訂單資料至後端serve。

正在開發功能:

  • 輸入訂單時提供的買家資料即可查看訂單內容。
  • 新增料理種類,選擇料理種類後介面只會顯示該種類之食物資訊。

專案展示

新增餐點
使用者可選擇餐點數量並將餐點添加到購物車中。 add

查看購物車
點擊 My Cart 按鈕查看購物車內容及金額,可從購物車內增加或刪減餐點數量。 cart

確認點餐 & 填寫買家訊息表單 使用者點擊 Order 按鈕後會出現表單請使用者填寫,送出資料前會進行表單驗證。 order


從後端serve查看訂單資料
開啟 Google Firebase 選擇專案後,從 Realtime Database 頁面可查看專案的所有資料。 Screenshot_2 Screenshot_2

專案執行

  1. 執行 git clone https://github.com/hsin0724/Food-Order-APP.git 下載專案至本地端。
  2. 執行 npm install安裝專案所需套件。
  3. 執行 npm start 啟動專案,開啟瀏覽器前往 http://localhost:3000 訪問網頁。
  4. 執行 npm build ,在 build 資料夾建立專案 production 版本。
  5. 執行 npm deploy ,在 GitHub Pages 部屬專案網站。

About

This is a Food Order App built with React. Customers can adjust the quantity of each meal and add the meals to their cart. They can also view the cart by clicking the cart button. Click the order button will show the user information form. This app uses Google Firebase as its backend server to fetch and post order data with HTTP request.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published