Cakefly Shop
E-commerce platform for bakeries with intelligent route planning and real-time GPS tracking
Overview
Complete e-commerce platform for bakeries and confectioneries — web app (Angular), mobile delivery app (Flutter), and backend (Spring Boot). Location-based product shop, single-page checkout with Stripe payments, intelligent route planning autopilot with GPS geofencing and real-time tracking. DDD architecture with 18 domains across three platforms.
Intelligent autopilot continuously calculates the optimal next action for delivery drivers: cluster algorithm, GPS geofencing (200m), smart pre-selection during collection, on-the-way optimization. Complete undo mechanism with 5-minute time windows and problem handling. Background GPS tracking on mobile device with live map display for customers. Spring AI integration for AI-powered features.
Tech Stack
Architecture Highlights
- Domain-Driven Design with 18 domains and generic 4-layer inheritance hierarchy
- Dedicated endpoints: Each use case has its own method and REST route
- Entity-domain-DTO separation with automatic TypeScript generation for Angular
- Redis caching exclusively at the DTO level of the controller layer
- Cross-platform API: One backend serving Angular, Flutter, and Keycloak
- Keycloak with custom theme and event listener for two clients (web + mobile)
Key Features
- Intelligent route planning autopilot with cluster algorithm and GPS geofencing
- Three-platform ecosystem: Angular web app, Flutter delivery app, and Spring Boot backend
- Location-based product shop with automatic delivery area filtering
- Single-page checkout with Stripe integration and four customer scenarios
- Real-time GPS tracking with background service and live map for customers
- DDD architecture with 18 domains and dedicated use-case endpoints instead of generic CRUD
- Fully automated CI/CD pipeline with Trivy security scanning