{"id":28212579,"url":"https://github.com/dehyabi/foodmate","last_synced_at":"2026-04-17T05:03:34.558Z","repository":{"id":293734544,"uuid":"984970934","full_name":"dehyabi/foodmate","owner":"dehyabi","description":"FoodMate is an easy-to-use app for restaurants, making ordering food faster and smoother.","archived":false,"fork":false,"pushed_at":"2025-05-24T10:01:51.000Z","size":840,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-24T11:18:09.342Z","etag":null,"topics":["docker","glassmorphism","nextjs","restaurant","shadcn","socket-io","tailwindcss","tanstack-query","typescript","zod"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dehyabi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-16T20:36:00.000Z","updated_at":"2025-05-24T10:01:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c6a3a7d-207a-4f54-9398-652313428daa","html_url":"https://github.com/dehyabi/foodmate","commit_stats":null,"previous_names":["dehyabi/foodmate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dehyabi/foodmate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehyabi%2Ffoodmate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehyabi%2Ffoodmate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehyabi%2Ffoodmate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehyabi%2Ffoodmate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dehyabi","download_url":"https://codeload.github.com/dehyabi/foodmate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehyabi%2Ffoodmate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259634348,"owners_count":22887697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","glassmorphism","nextjs","restaurant","shadcn","socket-io","tailwindcss","tanstack-query","typescript","zod"],"created_at":"2025-05-17T19:09:05.864Z","updated_at":"2026-04-17T05:03:29.515Z","avatar_url":"https://github.com/dehyabi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🍽️ FoodMate\n\n**FoodMate** is a modern food ordering dashboard built with **Next.js 15**, **gRPC**, **WebSocket (Socket.IO)**, and **TanStack Query**. It supports real-time order updates and data fetching from gRPC and local mock APIs.\n\n---\n\n## 🛠️ Tech Stack\n\n* **Frontend:** Next.js 15+ (App Router), TypeScript, TailwindCSS\n* **gRPC Backend:** Node.js with `@grpc/grpc-js`\n* **WebSocket:** Socket.IO for real-time updates\n* **State Management:** TanStack Query (React Query)\n* **Dockerized:** Multi-service environment with Docker\n* **Mock Data:** JSON files (Favorites, Orders, Menus)\n* **Form Validation:** Zod \u0026 React Hook Form\n* **UI Components:** TailwindCSS \u0026 ShadCN UI\n\n---\n\n## 📁 Project Structure\n\n```\n/grpc-server          - gRPC backend with mock data\n/socket-server        - WebSocket server with Socket.IO\n/src/app/api          - API routes that bridge frontend and gRPC/backend\n/src/app/admin/dashboard - Admin dashboard interface\n/src/app/dashboard    - Main user dashboard\n/src/lib              - gRPC + WebSocket client setup\n/public               - Static assets\n```\n\n---\n\n## ✨ Features\n\n* 📦 **gRPC Integration** – Fetch orders \u0026 favorites using gRPC\n* 🔁 **WebSocket (Socket.IO)** – Real-time updates for dashboard\n* ⚡ **TanStack Query** – Cache and revalidate data efficiently\n* 📦 **Mock APIs** – Load JSON data (orders, favorites, menus)\n* 💅 **Glassmorphism UI** – Clean, modern, and responsive dashboard\n* 🔢 **Form Validation** – Powered by Zod \u0026 React Hook Form\n* 📏 **Component UI** – Built using TailwindCSS and ShadCN\n\n---\n\n## 🧑‍💻 Local Development\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/yourusername/foodmate.git\ncd foodmate\n```\n\n### 2. Start gRPC server\n\n```bash\ncd grpc-server\nnpm install\nnpm run dev\n```\n\n### 3. Start WebSocket server\n\n```bash\ncd ../socket-server\nnpm install\nnpm run dev\n```\n\n### 4. Start Next.js frontend\n\n```bash\ncd ..\nnpm install\nnpm run dev\n```\n\n---\n\n## 🚩 First Time Usage\n\n1. **Login as Admin:**\n\n   * Email: `admin@foodmate.com`\n   * Password: `admin123`\n\n2. **Register as Customer**, then login with the registered credentials.\n\n3. Now the customer can access the dashboard and features.\n\n---\n\n## 🐳 Docker (Optional)\n\nBuild and run all services using Docker:\n\n```bash\nmake docker-build-clean-prod   # First time build\nmake docker-build-prod         # For subsequent updates\n```\n\n\u003e Ensure Docker is running and internet connectivity is available during image pulls.\n\n---\n\n## 📂 Sample Mock Data\n\nLocated in: `grpc-server/mock`\n\n* `favorites.json`\n* `orders.json`\n\n---\n\n## 🔌 WebSocket Events\n\n| Event Name          | Payload Example             | Description              |\n| ------------------- | --------------------------- | ------------------------ |\n| `order-updated`     | `Array\u003cOrder\u003e`              | Broadcast updated orders |\n| `favorites-updated` | `Array\u003cFavoriteRestaurant\u003e` | Broadcast favorites      |\n\n---\n\n## 📷 Dashboard Preview\n\n\u003e View your orders and favorite restaurants in real time!\n\n---\n\n## 📽️ Demo\n\n[FoodMate Live Demo](https://dehyabi.github.io/foodmate)\n\n---\n\n## 📬 Contact\n\n- Email: dehyafullstack@gmail.com\n- LinkedIn: linkedin.com/in/dehyabi\n- GitHub: github.com/dehyabi\n\n---\n\n## 📄 License\n\nMIT © 2025 FoodMate\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdehyabi%2Ffoodmate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdehyabi%2Ffoodmate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdehyabi%2Ffoodmate/lists"}