🚀 RealtyFlow Deployment Guide

Complete checklist for production deployment

Production Readiness: 95%
10
Functions Working
3
Cron Jobs Needed
2
Secrets Required
🔴 CRITICAL - Must Complete Before Launch

1. Configure Razorpay Payment Secrets

Required for payment processing

2. Run One-Time Genealogy Update

Updates genealogy paths for existing associates

3. Set Up Automated Cron Jobs

Essential for automated operations

Auto Expire Unit Holds

Every Hour

Automatically releases units held for more than 24 hours

# Cron Expression: 0 * * * *  (Every hour)
# Function URL: /api/functions/autoExpireHolds
# Method: POST
# Auth: Admin Only

Send EMI Payment Reminders

Daily at 9 AM

Sends payment reminders and calculates late penalties

# Cron Expression: 0 9 * * *  (Every day at 9 AM IST)
# Function URL: /api/functions/sendEMIReminders
# Method: POST
# Auth: Admin Only

Calculate Weekly Achievements

Weekly (Sunday)

Calculates top performers and achievements

# Cron Expression: 0 23 * * 0  (Every Sunday at 11 PM)
# Function URL: /api/functions/calculateAchievements
# Method: POST
# Auth: Admin Only
🟡 RECOMMENDED - Should Complete
💳

Test Payment Integration

  • Create a test Razorpay order using test mode keys
  • Complete a test booking with payment
  • Verify payment verification works correctly
  • Check invoice generation after payment
💰

Test Commission Calculation

  • Set up commission rules for different project types
  • Create a test sale and trigger commission calculation
  • Verify direct and multi-level upline commissions
  • Test commission approval and payout workflow
📊

Test EMI Management

  • Create an EMI scheme with test parameters
  • Submit a test EMI application
  • Approve and verify EMI schedule generation
  • Test reminder sending functionality
🟢 POST-DEPLOYMENT - Verify Everything Works

Database & Entities

  • ✅ Create test project
  • ✅ Add test units
  • ✅ Create test associate
  • ✅ Create test lead

Functions & Automation

  • ✅ Test commission calculation
  • ✅ Test invoice generation
  • ✅ Test genealogy tree
  • ✅ Verify cron jobs running

User Workflows

  • ✅ Admin login & dashboard
  • ✅ Associate login & portal
  • ✅ Lead to booking flow
  • ✅ Site visit tracking

Reports & Analytics

  • ✅ Export commission report
  • ✅ Generate invoices
  • ✅ View analytics charts
  • ✅ Check genealogy tree
📚 Backend Functions Reference
calculateCommissions

Auto-calculates multi-level commissions

✅ Working
createRazorpayOrder

Creates payment orders

✅ Working
verifyRazorpayPayment

Verifies payment signatures

✅ Working
autoExpireHolds

Auto-expires 24hr unit holds

⏰ Needs Cron
sendEMIReminders

Sends EMI payment reminders

⏰ Needs Cron
calculateAchievements

Calculates weekly achievements

⏰ Needs Cron
generateInvoice

Generates PDF invoices

✅ Working
generateEMISchedule

Generates EMI payment schedule

✅ Working
getGenealogyTree

Fetches network genealogy tree

✅ Working
exportCommissionsReport

Exports commission reports

✅ Working
verifyCommissionCalculation

Verifies commission accuracy

✅ Working
updateGenealogyPaths

Updates genealogy paths

⚠️ Run Once
🏪 Play Store Listing Content

Short Description (max 80 chars)

Manage your real estate business, leads, and earnings on the go with Armor Infratech.

Full Description

Welcome to the official app for Armor Infratech Associates! 🏡

Manage your entire real estate business from the palm of your hand. Whether you're tracking leads, booking units, or checking your commissions, our app makes it seamless and efficient.

✨ KEY FEATURES:

📊 Smart Dashboard
Get a real-time overview of your sales performance, team growth, and pending commissions at a glance.

👥 Lead Management
Capture, track, and nurture your leads. Schedule site visits and follow-ups so you never miss an opportunity.

🏢 Interactive Inventory
Browse properties with our interactive sitemap. View real-time unit availability, pricing, and book units instantly for your clients.

💰 Commission Tracking
Transparent earnings tracking. View your direct and team commissions, download statements, and track payouts.

🏗️ Marketing Material
Access and share project brochures, floor plans, and images directly with your clients via WhatsApp.

🎓 Learning Center
Access training modules and resources to sharpen your real estate skills and grow your business.

🚀 Team Management
Monitor your downline's performance and help your team succeed.

---
Empowering Associates. Building Trust.
Download now and accelerate your real estate success!

Release Notes (What's New)

🚀 Initial Release (v1.0.0):

• Complete Associate Dashboard
• Real-time Property Inventory & Booking
• Interactive Sitemap View
• Lead Management System
• Commission & Payout Tracking
• Marketing Resources Gallery
• Team Performance Monitoring
📱 Mobile App (Cordova) Configuration

1. Required Plugins

Run these commands in your Cordova project folder to enable Location and Sharing:

# 1. For Location / GPS
cordova plugin add cordova-plugin-geolocation

# 2. For opening external links (WhatsApp, Browser)
cordova plugin add cordova-plugin-inappbrowser

# 3. For whitelisting external intents
cordova plugin add cordova-plugin-whitelist

# 4. (Optional) For Google Login Fix
cordova plugin add cordova-plugin-useragent

2. Update config.xml

Add these lines inside the <widget> tag to allow external apps:

<!-- Allow opening external apps -->
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-intent href="whatsapp:*" />

<!-- Allow navigation to your app domain -->
<allow-navigation href="https://armorinfratech.com/*" />

<!-- Fix Google Login (Override UserAgent) -->
<preference name="OverrideUserAgent" value="Mozilla/5.0 (Linux; Android 10; Mobile) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Mobile Safari/537.36" />

3. Android Permissions

Ensure your platforms/android/app/src/main/AndroidManifest.xml includes:

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
✅ Final Pre-Launch Checklist
1
Set RAZORPAY_KEY_ID and RAZORPAY_KEY_SECRET
2
Run updateGenealogyPaths function once
3
Set up autoExpireHolds cron (hourly)
4
Set up sendEMIReminders cron (daily 9 AM)
5
Set up calculateAchievements cron (weekly Sunday)
6
Test payment flow end-to-end
7
Test commission calculation
8
Test EMI application workflow
9
Verify all dashboards load correctly
10
Test associate login and features
11
Backup database before launch
12
Set up monitoring alerts

Need Help? 🤝

Our team is here to help you with deployment