This project is a Restaurant Ordering System built with Vue 3 and Vite, utilizing JSONPlaceholder as a dummy API for product data. The app allows users to browse restaurant menu items, add items to their cart, and proceed to checkout.
- Browse menu items
- Add items to cart
- View cart details
- Remove items from cart
- Checkout process
- Vue 3
- Vite
- Tailwind CSS (optional, if used)
- JSONPlaceholder (dummy API)
npm install
npm run build
This project uses JSONPlaceholder as a dummy API to simulate restaurant menu data.
Example API Endpoint:
https://jsonplaceholder.typicode.com/posts
If you want to use JSONPlaceholder locally, follow these steps:
- Navigate to the database-jsonPlaceholder folder.
- Install JSON Server globally: sh Copy Edit
npm install -g json-server
- Start the JSON server with the provided db.json file:
json-server --watch db.json --port 3000
- The API will be available at:
http://localhost:3000/best-products
http://localhost:3000/products
http://localhost:3000/carts
http://localhost:3000/orders
- Contributing Feel free to fork this project, submit issues, or make pull requests.