Mashkanta Pro
April 11, 2026 ยท View on GitHub
Mashkanta Pro
The frontend is a Vite React app, and Gemini now runs only inside Firebase Functions.
Local setup
Prerequisites: Node.js, Firebase CLI
- Install frontend dependencies:
npm install - Install Firebase Functions dependencies:
npm install --prefix functions - Set the Gemini secret for Functions:
firebase functions:secrets:set GEMINI_API_KEY - Build the function package once:
npm run build:functions - Start the frontend:
npm run dev
Deploy Functions
- Log in to Firebase CLI:
firebase login - 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.