Skip to main content

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.

This quickstart walks you through cloning the repository, wiring up Firebase and your backend URL, launching the app with Expo, and placing your first pickup order. The whole process takes about ten minutes.

Prerequisites

Before you begin, make sure you have the following:
  • Node.js 18 or later
  • Expo CLI — available via npx expo (no global install required)
  • A Firebase project with Email/Password authentication enabled
  • A running Panahashi backend accessible from your device or emulator

Steps

1

Clone and install

Clone the repository and install dependencies:
git clone https://github.com/AndrewwCO/Panahashi.git && cd Panahashi && npm install
2

Configure Firebase

Open context/AuthContext.js and replace the firebaseConfig object with your own Firebase project credentials:
const firebaseConfig = {
  apiKey:            "AIzaSyAgvCRHhhxFRI6T5xmczblP8AGpA1bzKG8",
  authDomain:        "panahashi-backend.firebaseapp.com",
  projectId:         "panahashi-backend",
  storageBucket:     "panahashi-backend.firebasestorage.app",
  messagingSenderId: "981410583680",
  appId:             "1:981410583680:web:a6b4be94c6a473d0800265",
};
The values above are from the sample project. Swap them for the values from your own Firebase console under Project settings → Your apps.
3

Configure the backend URL

Open services/api.js and set BASE_URL to match your environment:
// Android emulator
export const BASE_URL = 'http://10.0.2.2:8080/api/v1';

// iOS simulator or web
// export const BASE_URL = 'http://127.0.0.1:8080/api/v1';

// Production
// export const BASE_URL = 'https://your-backend.com/api/v1';
Uncomment the line that matches where you are running your backend.
4

Run the app

Start the Expo development server:
npx expo start
Expo will display a QR code and a menu. Press i for iOS simulator, a for Android emulator, or w for web.
5

Sign in and explore

When the app opens, tap Create account to register with your email and password, or log in if you already have an account. Once authenticated you can browse bakeries, add products to your cart, choose a pickup time, and place your first order.
If you use the Android emulator, the backend URL must be http://10.0.2.2:8080/api/v1 — not localhost. The emulator routes localhost to the emulator itself, not to your host machine.
Scanning the QR code with the Expo Go app on a physical device is the fastest way to test. Changes you make to source files are reflected immediately without rebuilding.

Build docs developers (and LLMs) love