Skip to content

MetaMsa/Restaurant-Panel-Case

Repository files navigation

Restaurant Panel Case

Bu proje React + TypeScript + Firebase Firestore kullanılarak geliştirilmiş basit bir restoran sipariş panelidir. Kullanıcılar ürünleri görüntüleyebilir, sepete ekleyebilir ve sipariş oluşturabilir.

Proje bir case çalışması kapsamında geliştirilmiştir.

Live Demo: https://restaurant-panel-1c568.web.app/


Özellikler

  • Kategoriye göre ürün listeleme
  • Sepete ürün ekleme
  • Sepette ürün miktarını artırma / azaltma
  • Sepetten ürün kaldırma
  • Sepetin LocalStorage ile kalıcı olması
  • Sipariş oluşturma
  • Firebase Firestore entegrasyonu

Kullanılan Teknolojiler

  • React
  • TypeScript
  • Firebase Firestore
  • Vite
  • Bootstrap

Proje Yapısı

src
 ├─ components
 │   ├─ main
 │   │   ├─ Cart.tsx
 │   │   └─ Order.tsx
 │   └─ product
 │       └─ Modal.tsx
 │
 ├─ hooks
 │   ├─ useProducts.ts
 │   └─ useOrders.ts
 │
 ├─ services
 │   ├─ orderService.ts
 │   └─ productService.ts
 │
 ├─ firebase
 │   └─ firebase.ts
 │
 └─ App.tsx

Kurulum

Projeyi klonla

git clone https://github.com/MetaMsa/Restaurant-Panel-Case.git

Bağımlılıkları yükle

npm install

Projeyi çalıştır

npm run dev

Firebase Kurulumu

Bir Firebase projesi oluşturup aşağıdaki bilgileri .env dosyasına ekleyin.

VITE_FIREBASE_API_KEY=your_key
VITE_FIREBASE_AUTH_DOMAIN=your_domain
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_bucket
VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
VITE_FIREBASE_APP_ID=your_app_id

Firestore Veri Yapısı

products

products
  └─ productId
       name
       type
       price
       description
       imageUrl
       createdAt

orders

orders
  └─ orderId
       items
        └─name
          type
          price
          description
          imageUrl
          createdAt
       paymentType
       orderType
       tableNumber
       total
       createdAt

Geliştirici

GitHub: https://github.com/MetaMsa

About

Suitable Yemek Case

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors