Panahashi Baker has two required configuration values: the URL of your backend REST API and a Firebase project config for authentication. Both must be set before the app will function. This page covers every option you control as an app developer.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Pana-Baker/llms.txt
Use this file to discover all available pages before exploring further.
Backend API URL
All network calls go throughsrc/services/api.js. The API_BASE constant at the top of that file determines where every request is sent:
API_BASE in one of two ways:
.env approach uses expo-constants, which is already listed as a dependency in package.json. It lets you keep different URLs for development and production without changing source files.
Firebase configuration
Authentication is handled insrc/services/auth.js. The file calls initializeApp(firebaseConfig) and expects a firebaseConfig object with your Firebase project’s credentials:
The app initializes Firebase only once, guarding against hot-reload double-initialization with a
getApps().length === 0 check. You only need to provide firebaseConfig — do not change the initialization logic itself.auth.js automatically:
- Listens for auth state changes with
onAuthStateChanged. - Fetches an ID token from Firebase and passes it to the API service via
api.setToken(token). - Stores the bakery owner’s display name with
api.setUserName(firebaseUser.displayName).
src/services/api.js includes that token in the Authorization: Bearer <token> header.
For full Firebase project setup instructions — including creating the project, enabling Email/Password auth, and adding google-services.json to your build — see the Firebase Auth setup guide.
Next steps
Firebase Auth setup
Step-by-step guide to creating a Firebase project and enabling authentication.
Backend API
Connect Panahashi Baker to your REST API backend.