A modern, responsive frontend-only bakery e-commerce application built with React. Browse bakery products, add items to your cart, and place orders via email or WhatsApp.
- Product Catalog: Browse cakes, muffins, and ice cream with images, prices, and details.
- Shopping Cart: Add/remove items, persist cart in localStorage.
- Checkout: Submit orders with customer details and delivery info.
- Order Notifications: Send order confirmations via EmailJS or WhatsApp.
- Responsive Design: Mobile-friendly with Tailwind CSS.
- Navigation: React Router for seamless page transitions.
- Frontend: React 19, Vite
- Styling: Tailwind CSS
- Routing: React Router DOM
- Icons: React Icons
- Email Integration: EmailJS
- Notifications: React Toastify
-
Clone the repository:
git clone <repository-url> cd bakery-web-app
-
Install dependencies:
npm install
-
Set up environment variables (create
.envfile):VITE_EMAIL_SERVICE_ID=your_emailjs_service_id VITE_EMAIL_TEMPLATE_ID=your_emailjs_template_id VITE_PUBLIC_KEY=your_emailjs_public_key VITE_WHATSAPP_NUMBER=your_whatsapp_number
-
Start the development server:
npm run dev
-
Open http://localhost:5173 in your browser.
-
Browse products, add to cart, and checkout.
npm run dev: Start development servernpm run build: Build for productionnpm run preview: Preview production buildnpm run lint: Run ESLint
bakery-web-app/
├── src/
│ ├── components/ # React components (ProductCatalog, ShoppingCart, etc.)
│ ├── data/ # Products data
│ ├── utils/ # Email and WhatsApp services
│ └── ...
├── public/assets/ # Product images
└── ...
- Change Fonts.
- A categories section containing sections like
Pastries,Cakes,Bread(and ashopsection) . - A minimizable pop-up asking users how to improve the site (collapsable).
- Add a
Product page. This page will contain details abou individual products.