Grocery Cart– Real time e-commerce platform
Kazi Nihal Ahmed
Published
Grocery Cart is a full-stack grocery delivery platform built with Next.js 16 that provides a seamless online shopping experience from product browsing to doorstep delivery. The platform supports three distinct user roles—Customer, Admin, and Delivery Personnel—and features real-time order tracking, secure payment processing, geospatial rider assignment, OTP-based delivery verification, and integrated live chat.
Overview
I independently designed and developed the entire application, implementing both the frontend and backend while focusing on scalability, real-time communication, and user experience. The project demonstrates modern full-stack development practices using the latest Next.js ecosystem, authentication, state management, geospatial queries, and WebSocket-based real-time features.
My Contributions
Full-Stack Development
- Designed and developed the complete application independently.
- Built both frontend and backend using the Next.js App Router.
- Implemented a scalable and modular application architecture.
Authentication & Authorization
- Implemented secure authentication using NextAuth v5.
- Supported both Credentials and Google OAuth login.
- Developed role-based access control for Customers, Admins, and Delivery Personnel.
Order Management
- Built a complete grocery ordering workflow.
- Developed order lifecycle management from placement to delivery.
- Implemented real-time order status updates.
Real-Time Features
- Developed a dedicated Socket.IO server for real-time communication.
- Implemented live order tracking.
- Built real-time chat between customers and delivery personnel.
- Enabled live GPS location updates for delivery tracking.
Payments
- Integrated Stripe for secure online payments.
- Implemented Cash-on-Delivery (COD) as an alternative payment method.
- Built payment handling and order confirmation workflows.
Delivery System
- Implemented geospatial rider assignment using MongoDB 2dsphere indexes.
- Assigned nearby delivery personnel based on customer location.
- Developed OTP-based delivery verification for secure order completion.
Maps & Location
- Integrated Leaflet for interactive maps.
- Implemented live GPS tracking of delivery personnel.
- Displayed delivery progress in real time.
Key Features
- Multi-role system (Customer, Admin, Delivery Personnel)
- Credentials & Google OAuth authentication
- Role-based access control (RBAC)
- Real-time order tracking
- Dedicated Socket.IO server
- Live customer–delivery personnel chat
- Stripe payment integration
- Cash-on-Delivery (COD)
- OTP-based delivery verification
- Geospatial rider assignment
- Interactive maps with Leaflet
- Live GPS tracking
- Responsive user interface