- i18n/index.ts: i18next setup with FR/EN/ES/DE translations - constants.ts: app config, sensor types, alert severity, storage keys, refresh intervals - store/index.ts: barrel export for all stores - iotStore.ts: full IoT store (6 sensors, 3 zones, 2 alerts) with actions - notificationStore.ts: notification store (5 mock notifications) with actions - uiStore.ts: theme/language store + translation maps for 4 languages - useSensors.ts: sensor filtering by type/zone, alert sensors selector - useAlerts.ts: active alerts, critical alerts, acknowledge - useNotifications.ts: notification CRUD operations - useLocation.ts: GPS location with expo-location, default Fort-de-France - SensorCard.tsx: full sensor card with status dot, compact mode - StatsCard.tsx: stats card with icon, value, trend - AlertCard.tsx: alert card with severity bar, acknowledge button - ZoneCard.tsx: zone card with color bar, sensor/alert counts - LineChart.tsx: bar-based line chart with Y-axis labels - BarChart.tsx: bar chart with value labels - GaugeChart.tsx: semi-circular gauge with color thresholds - MapView.tsx: map placeholder with overlay markers - MarkerPopup.tsx: popup with title, value, status, detail button - DashboardScreen.tsx: analytics dashboard with gauges + charts - SensorDetailScreen.tsx: sensor detail with gauge + history chart - NotificationPrefsScreen.tsx: notification preference toggles (4) - LayerDetailScreen.tsx: layer detail placeholder - iot.service.ts: CRUD operations for sensors, zones, alerts - gis.service.ts: geocoding, POI search, routing
Smart App City — Mobile Application
Multi-platform mobile application for Smart City Digital Twin Martinique
Quick Start
Prerequisites
- Node.js 20+
- Expo CLI:
npm install -g expo-cli - Docker & Docker Compose
Development
# Install dependencies
cd frontend
npm install
# Start development server
npx expo start
# Run on device
# Scan QR code with Expo Go app
Backend
# Start all services
cd ..
docker-compose up -d
# Start individual service
cd backend/auth-service
npm run start:dev
AI Services
# Start RAG service
cd ai/rag-service
pip install -r requirements.txt
uvicorn main:app --reload --port 8001
# Start Agent service
cd ai/agent-service
pip install -r requirements.txt
uvicorn main:app --reload --port 8002
Documentation
License
Smart City Digital Twin Martinique — Projet public