This page explains how to connect Panahashi to your own backend and Firebase project, install optional dependencies, and understand which screens call which endpoints.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi/llms.txt
Use this file to discover all available pages before exploring further.
Backend URL configuration
All API calls in Panahashi flow through a single constant defined at the top ofservices/api.js:
| Environment | Value |
|---|---|
| Android emulator | http://10.0.2.2:8080/api/v1 |
| iOS simulator / web | http://127.0.0.1:8080/api/v1 |
| Production | https://your-domain.com/api/v1 |
Firebase setup
Panahashi uses the Firebase JavaScript SDK for authentication. The configuration lives incontext/AuthContext.js:
google-services.json (Android) and GoogleService-Info.plist (iOS) to your project root and reference them in app.json.
Optional dependencies
QR code display
OrderConfirmationScreen can render a scannable QR code for the customer to present at the bakery. This requires two packages:
<Text> element in OrderConfirmationScreen.js with the QRCode component:
qrCode value is returned by the backend when an order is created.
Screens and their endpoints
The table below shows which backend endpoint each screen calls:| Screen | Method | Endpoint |
|---|---|---|
| HomeScreen | GET | /api/v1/bakeries |
| BakeriesScreen | GET | /api/v1/bakeries |
| BakeryDetailScreen | GET | /api/v1/bakeries/:id |
| BakeryDetailScreen | GET | /api/v1/products?bakeryId= |
| BakeryDetailScreen | GET | /api/v1/reviews?bakeryId= |
| BakeryDetailScreen | GET | /api/v1/promotions?bakeryId= |
| BakeryDetailScreen | GET | /api/v1/favorites/:bakeryId/status |
| SearchScreen | GET | /api/v1/search |
| CartScreen | GET | /api/v1/cart |
| CartScreen | POST | /api/v1/orders |
| OrdersScreen | GET | /api/v1/orders/me |
| OrderDetailScreen | GET | /api/v1/orders/:id |
| PaymentScreen | POST | /api/v1/payments |
| LoyaltyScreen | GET | /api/v1/loyalty |
| FavoritesScreen | GET | /api/v1/favorites |
| ProfileScreen | GET | /api/v1/users/me |
| ProfileScreen (edit) | PATCH | /api/v1/users/me |