MIMAPP
A food delivery ecosystem: customer, driver and restaurant apps connected in real time.

Inside the product
5 screens Β· scroll β
The project
This project is a comprehensive next-generation food delivery ecosystem. It consists of three independent applications, interconnected through a shared real-time PostgreSQL database, and designed to cover the entire value chain: from the customer to the driver, through the restaurant operator. The 3 Applications π± Client Application (React Native - Mobile) The consumer-facing application. It covers the entire purchase journey, from meal discovery to real-time delivery tracking. π Driver Application "Le Coursier" (React Native - Mobile) The field logistics application dedicated to drivers. It manages ride acceptance, background GPS tracking, and delivery confirmations. π₯οΈ Admin Hub "Le Pilotage" (React Native Web - Tablet/Desktop) The control center for operators and restaurant owners. It provides 7 management modules covering restaurants, menus, orders, drivers, pricing, concierge service, and dispute resolution. This Food Delivery ecosystem is not an MVP (Minimum Viable Product). It is a complete, asynchronous, reactive, and secure software foundation covering the entire food delivery value chain. The architecture of three micro-applications connected via PostgreSQL Realtime guarantees: - Horizontal Scalability: Each application can evolve independently. - Transactional Integrity: PostgreSQL ACID compliance for orders and payments. - Real-Time Experience : Near-zero latency between the driver in the field and the client on their phone. - Business Intelligence: Nutritional matching, dynamic pricing, and gamification natively integrated.
What it does
Dynamic Geolocation-Based Pricing
- Client β restaurant distance is calculated via the Haversine formula(GPS coordinates, Earth radius 6371 km), with zero external API calls.
- Delivery price determined by a system of configurable pricing tiers managed by the admin (table
delivery_pricing_tiers).
Smart Nutritional Matching Engine
A real-time scoring algorithm that evaluates every dish against the user's health profile:
- Caloric calculation : Mifflin-St Jeor formula (BMR adjusted by activity level and goal).
- Compatibility score: Out of 100, with penalties proportional to calorie/protein deviation from per-meal target (divided by 3).
- Allergen filtering: Dishes containing a declared allergen are automatically excluded (score = 0).
- Result: Visual "Match XX%" badge displayed on each dish card.
Full Real-Time Synchronization
- All order status changes are broadcast instantly via PostgreSQL WebSockets.
- Driver GPS position is updated live (
driver_locationstable,upsertondriver_idconflict). - The client receives position updates without any action on their part (push via Realtime channel).
Distributed State Management (Group Orders)
- Unique session code generation (6 alphanumeric characters).
- Native sharing (Share API) to WhatsApp, SMS, etc.
- Each participant joins via the code and populates a synchronized common cart
Gamification & Loyalty Program
- Transactional points system ("Γcrin Coins") calculated from delivered orders.
- Behavioral bonus: +10 points for eco-responsible orders (no cutlery).
- 4 status tiers with progressive reward unlocking.
How it's built
Monorepo Architecture & Frontend
- Monorepo: All 3 applications coexist in a single repository (
apps/ecrin,apps/course,apps/pilotage), enabling shared configuration and ecosystem consistency. - Expo Router: File-based routing ensuring predictable native navigation and native Deep Linking.
- React Native: Native compilation for iOS and Android, delivering performance identical to native apps (direct access to hardware APIs: GPS, Haptics, Camera).
- Zustand : Reactive global store, zero boilerplate. Used for the cart (
cartStore) with local persistence. - Skeleton Loaders:
Animated.timinganimation (opacity 0.3 β 1.0 loop) for a visually premium loading experience.
- Monorepo: All 3 applications coexist in a single repository (
Backend & Database: PostgreSQL
The infrastructure is powered by PostgreSQL, providing guarantees of performance, transactional integrity, and scalability.
- Realtime WebSockets (Postgres Changes): Native WebSocket multiplexing. Mutations on tables (
orders,driver_locations) trigger instant notifications to subscribed clients. Zero HTTP polling. - Row Level Security (RLS): Row-level security policies. Strict multi-tenant isolation: a client only sees their orders, a driver only their deliveries, a restaurant owner only their establishment.
- PostgreSQL RPC Functions & Triggers: Business logic executed as close to the data as possible via stored procedures, reducing network latency and client-side compute cost.
- Object Storage: Dish and restaurant images hosted in a cloud storage bucket with public URLs.
- Realtime WebSockets (Postgres Changes): Native WebSocket multiplexing. Mutations on tables (
Security & Identity Management
- JWT (JSON Web Tokens): Cryptographic authentication with automatic renewal and encrypted local persistence via
AsyncStorage. - RBAC (Role-Based Access Control): 3 strict roles (
client,driver,admin) verified at both the UI level and the database rule level. - Role verification at login: The Driver app automatically rejects any non-driver user. The Admin app verifies
adminorrestaurantroles.
- JWT (JSON Web Tokens): Cryptographic authentication with automatic renewal and encrypted local persistence via
Geolocation
- Client: Haversine formula (pure mathematical calculation, zero API cost) for distance calculation.
- Driver:
expo-locationwithwatchPositionAsync(high accuracy, 5s interval, 10m distance). - Client Tracking:
react-native-mapswith dynamic markers and polylines updated in real-time.
Building a startup?
We build your MVP and stay at your side, from validating the idea to raising funds.
Other startups
See all startups
CUBER AI-Powered Business Simulation and Prototyping Platforms
An AI-orchestrated platform that takes a venture from market research to investor readiness.
Read the story
Gvalo Automated SaaS Accounting Platform
An accounting co-pilot that automates a firmβs document and tax workflow, from receipt to tax return.
Read the story




