Mashkanta Pro

April 11, 2026 ยท View on GitHub

GHBanner

Mashkanta Pro

The frontend is a Vite React app, and Gemini now runs only inside Firebase Functions.

Local setup

Prerequisites: Node.js, Firebase CLI

  1. Install frontend dependencies: npm install
  2. Install Firebase Functions dependencies: npm install --prefix functions
  3. Set the Gemini secret for Functions: firebase functions:secrets:set GEMINI_API_KEY
  4. Build the function package once: npm run build:functions
  5. Start the frontend: npm run dev

Deploy Functions

  1. Log in to Firebase CLI: firebase login
  2. Deploy the callable function: firebase deploy --only functions

The React app calls the Firebase callable function generateMortgageConsultation, so the Gemini API key is no longer exposed in the browser bundle.