Fresh Market
Link to open source: https://github.com/ChiragTankan/Store
Link to Live Project: https://store-iota-gules.vercel.app/
🌿 Deep Fresh Market: A Premium Grocery Ecosystem
Deep Fresh Market is a high-performance, mobile-first Single Page Application (SPA) designed to digitize local grocery businesses. Built with React 19 and Firebase, it offers a seamless, real-time experience for both customers and store owners, bridging the gap between local commerce and modern technology.
🚀 Live Demo & Key Highlights
-
Customer Experience: Premium UI with glassmorphic elements and optimized cart flow.
-
Admin Control: A robust dashboard for real-time inventory and order lifecycle management.
-
Performance: Sub-second sync times powered by Firebase Firestore’s real-time subscriptions.
🛠️ Technical Stack
-
Frontend: React 19 (Functional Components, Hooks, Context API)
-
Styling: Tailwind CSS (Utility-first, Custom Animations, Glassmorphism)
-
Database: Google Firebase (Firestore NoSQL)
-
APIs:
-
MediaDevices API: Integrated in-browser camera for instant product asset capture.
-
Geolocation API: Precise "Pin my location" feature for delivery accuracy.
-
-
Fonts: Plus Jakarta Sans for a modern, premium typography feel.
✨ Key Features
🛒 For Customers
-
Dynamic Catalog: Browse handpicked premium groceries with real-time "Out of Stock" indicators.
-
Smart Cart: Seamlessly manage quantities with a persistent floating cart drawer.
-
GPS Checkout: One-tap location pinning using the Google Maps Geolocation API to ensure zero delivery errors.
-
Order History: A dedicated "My Orders" tab with real-time status updates (Pending vs. Delivered).
💼 For Store Owners (Admin)
-
Real-time Order Feed: Instant popup notifications for incoming orders using onSnapshot listeners.
-
Integrated Asset Management: Snap product photos directly from the dashboard using the device's camera.
-
Inventory Control: Global toggle for stock availability and price updates that reflect instantly for all users.
-
Revenue Tracking: Detailed order summaries including total revenue and itemized breakdowns.
🏗️ Architecture Highlights
-
Real-Time Data Sync: Implemented the Observer Pattern via Firebase onSnapshot to ensure the Admin and Customer views are always in sync without manual refreshing.
-
Responsive UX: Developed using a Mobile-First approach, ensuring a native app-like experience on iOS and Android browsers.
-
Security: Password-protected Admin Gateway to prevent unauthorized access to store operations.
-
Optimization: Optimized image loading and state management to handle high-frequency order updates gracefully.
🔧 Installation & Setup
-
Clone the repository.
-
Install dependencies: npm install.
-
Set up your Firebase project and update services/firebase.ts with your config.
-
Run the development server: npm run dev.
Admin Credentials:
-
Default Password: admin
📈 Future Roadmap
-
Analytics Dashboard: Monthly sales reports and customer behavior heatmaps.
-
AI Smart Suggestions: Using Gemini API to suggest recipes based on cart items.
-
Push Notifications: Firebase Cloud Messaging (FCM) for order status alerts.
🤝 Contributing
Contributions are welcome! If you'd like to help improve Deep Fresh Market, please fork the repo and submit a PR.
The Challenge I Solved:
Most local stores struggle with maintaining accurate stock levels online. I solved this by implementing real-time inventory toggles and instant order notifications, ensuring the store owner can update availability the moment a shelf goes empty.


















