Safino - Fast Delivery of Hot Traditional Persian Bread
- Published on
- Duration
- 5 Months
- Role
- Full-Stack Developer (Frontend & Backend) & DevOps
- Atmosphere
- Fast-Paced & Customer-Centric
- Technology
- FastAPI, PostgreSQL, Docker, GitHub Actions, AWS S3, React, Next.js, Zustand, TailwindCSS



Project Overview
I developed Safino, a Progressive Web App (PWA) that enables fast delivery of hot traditional Persian bread to customers' doorsteps. The platform is designed to provide a seamless experience for customers, delivery personnel, and administrators. Customers can place orders, track their delivery in real-time, and receive their bread hot and fresh. Delivery personnel use the app to manage orders and optimize routes, while administrators oversee operations through a comprehensive admin panel.
Key Features
Progressive Web App (PWA):
- Provides a native app-like experience on both desktop and mobile devices.
- Works offline and supports push notifications for order updates.
Fast Order Placement:
- Customers can quickly select and order traditional Persian bread.
- Real-time inventory updates ensure accurate order fulfillment.
Real-Time Order Tracking:
- Customers can track their orders in real-time on an interactive map.
- Delivery personnel receive optimized routes for efficient deliveries.
Delivery Personnel App:
- Delivery personnel can manage orders, view routes, and mark deliveries as complete.
- Integrated with GPS for real-time location tracking.
Admin Panel:
- Administrators can manage orders, track delivery personnel, and monitor inventory.
- Provides analytics and reports for business insights.
Scalable Backend:
- Built with FastAPI for robust and scalable APIs.
- Uses PostgreSQL for structured data storage.
Modern Frontend:
- Developed with React, Next.js, and TailwindCSS for a responsive and user-friendly interface.
- State management handled by Zustand.
Cloud Integration:
- Stores images and static assets in AWS S3 for scalable and cost-effective storage.
CI/CD Pipeline:
- Implemented GitHub Actions for automated testing and deployment.
- Ensures smooth and efficient development workflows.
Self-Managed Infrastructure:
- Managed servers and deployment environments independently.
- Utilized Docker for containerization and deployment.
Technology Stack
Backend:
- FastAPI: For building robust and scalable APIs.
- PostgreSQL: Primary database for storing order and user data.
- Docker: Containerization for seamless deployment.
- AWS S3: Cloud storage for images and static assets.
Frontend:
- React: For building interactive user interfaces.
- Next.js: Server-side rendering and routing.
- TailwindCSS: Utility-first CSS framework for styling.
- Zustand: State management for complex frontend logic.
DevOps:
- GitHub Actions: CI/CD pipeline for automated testing and deployment.
- Docker: Containerization for consistent environments.
- Self-Managed Servers: Handled server setup, scaling, and maintenance.
Challenges and Solutions
Real-Time Order Tracking:
- Challenge: Implementing real-time order tracking with minimal latency.
- Solution: Used WebSocket for real-time communication and integrated with GPS for accurate location tracking.
Offline Functionality:
- Challenge: Ensuring the PWA works offline and syncs data when online.
- Solution: Implemented service workers and local storage for offline functionality and data synchronization.
Scalability:
- Challenge: Building a system that can scale with increasing users and orders.
- Solution: Adopted a microservices architecture with FastAPI and used AWS S3 for scalable storage.
Delivery Route Optimization:
- Challenge: Optimizing delivery routes for efficiency.
- Solution: Integrated with third-party routing APIs to provide optimized routes for delivery personnel.
Outcome
Safino has transformed the way traditional Persian bread is delivered, providing a fast, reliable, and user-friendly platform for customers, delivery personnel, and administrators. The PWA ensures a seamless experience, while the scalable backend and modern frontend technologies ensure high performance and reliability.