Case Study
KIRANA
A grocery delivery application inspired by modern quick-commerce platforms, featuring user management, product catalog, cart, order processing, payment, and delivery tracking.
JavaSpring BootPostgreSQLReactNext.jsDocker
Problem
Building a scalable e-commerce backend that handles the complete order lifecycle — from product discovery to delivery — while maintaining clean service boundaries.
Solution
Architected a modular Spring Boot backend with distinct domain modules (User, Product, Cart, Order, Payment, Delivery) connected through well-defined REST APIs.
Architecture
Next.js Client
│
▼
API Gateway / BFF
│
┌────┼────────┐
▼ ▼ ▼
User Product Order
API API API
│ │ │
└─────┼────────┘
▼
PostgreSQLKey Features
- User registration and authentication
- Product catalog and inventory management
- Shopping cart and checkout flow
- Order processing and status tracking
- Payment integration
- Delivery management module
Engineering Challenges
- Designing normalized database schemas for orders and inventory
- Managing cart state and concurrent order processing
- Implementing secure authentication and authorization
- Building a responsive frontend that communicates with multiple API modules
- Containerizing services for local and production deployment
Architecture Decisions
- Spring Boot for backend with layered architecture (Controller → Service → Repository)
- PostgreSQL for transactional order and inventory data
- Next.js for a modern, SEO-friendly frontend experience
- Docker Compose for local multi-service development
Results
- End-to-end order flow from cart to delivery
- Modular backend architecture supporting independent feature development
- Containerized deployment ready for cloud hosting