
react
React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.
It stands out for its comprehensive all-in-one feature set including real-time Socket.IO updates, a one-command Docker deployment that eliminates manual setup, an extensive admin panel with revenue stats and CSV export, and a robust automated test suite with isolated MongoDB.
Ứng dụng full-stack cho phép người dùng đăng ký/đăng nhập, xem nhà hàng và món ăn, tìm kiếm/lọc, thêm vào giỏ hàng, đặt hàng (có mã giảm giá), theo dõi trạng thái đơn theo thời gian thực, và quản trị viên quản lý người dùng/món ăn/đơn hàng/mã giảm giá.
Nếu máy bạn từng gặp khó khăn khi cài Node.js / MongoDB / lỗi kết nối Atlas, cách này giúp bạn bỏ qua TẤT CẢ các bước đó. Chỉ cần cài Docker Desktop (1 lần duy nhất), sau đó:
cp .env.example .env
docker compose up --build
Đợi vài phút để build xong, sau đó:
docker compose exec server npm run seed
Docker sẽ tự động: cài MongoDB (chạy nội bộ, không cần MongoDB Atlas, không lỗi DNS), cài Node.js, cài toàn bộ thư viện, build và chạy cả backend lẫn frontend — chỉ với các lệnh ở trên.
Dừng toàn bộ hệ thống: docker compose down (dữ liệu vẫn được giữ lại nhờ Docker volume, chạy docker compose up lại là có ngay).
| Thành phần | Công nghệ |
|---|---|
| Front-end | React 18 (Vite), React Router, Axios, Socket.IO Client |
| Back-end | Node.js, Express.js, Socket.IO |
| Database | MongoDB (Mongoose) |
| Xác thực | JWT (JSON Web Token) + bcrypt |
| Log & giám sát | Winston (ghi log ra file), Morgan (log HTTP request) |
| Đóng gói | Docker, Docker Compose |
| Công cụ | VS Code, Git/GitHub, Postman |
food-order/
├── client/ # React - giao diện người dùng
│ ├── Dockerfile / nginx.conf
│ └── src/
│ ├── pages/ # Home, Foods, RestaurantDetail, Cart, Checkout, Orders, Favorites, Profile, Admin...
│ ├── components/ # Navbar, FoodCard, RestaurantCard, StarRating, Pagination, ProtectedRoute, ErrorBoundary
│ ├── context/ # AuthContext (JWT), CartContext, ToastContext, SocketContext (realtime)
│ └── services/api.js
├── server/ # Node.js + Express - API
│ ├── Dockerfile
│ ├── models/ # User, Restaurant, Food, Order, Review, Coupon (Mongoose schemas)
│ ├── controllers/ # Logic xử lý cho từng route
│ ├── routes/ # Định nghĩa endpoint API
│ ├── validators/ # Quy tắc validate input (express-val
Similar projects matched by category, topics, and programming language.

React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.
A GPT‑image powered app that extracts individual garment cutouts from photos, organizes them into a digital wardrobe, and generates modeled outfit previews.
A browser-based first-person shooter built entirely with procedural generation and orchestrated AI agents, featuring 55k lines of Three.js/WebGL2 code and no art assets.