Codeplant IT Solution
Codeplant IT Solution
Custom Software & AI Engineering

Residential Society & Facility Management ERP Architecture: How Codeplant Built TrueGate

Category: Enterprise SaaS & Products | Reading Time: 5 min read

An architectural deep-dive into TrueGate, Codeplant's enterprise residential community and facility management ERP. Learn biometric access control, automated maintenance accounting, and visitor security.

Modern residential communities, high-rise luxury apartment complexes, and gated townships operate like small municipalities. A single township can house 2,000+ residential flats, 6,000+ residents, and process thousands of daily gate entries from delivery couriers, visitors, domestic staff, and service vehicles. Managing this complexity through fragmented WhatsApp groups, paper security registers, and manual bookkeeping creates severe security vulnerabilities and accounting chaos.

Existing society management apps on the market suffer from severe design flaws: gate security apps crash under peak morning delivery surges, resident notifications fail due to poor push notification infrastructure, and maintenance billing systems fail to track penalty interest, split utility charges, and reconciliation with corporate accounting ledgers.

To solve these structural challenges, Codeplant IT Solution engineered TrueGate, an enterprise-grade Residential Society & Community Management ERP. TrueGate unifies biometric facial recognition gate security, automated maintenance billing with instant UPI/Stripe payments, amenity booking locks, and resident communication into a single high-performance platform. Below is the architectural breakdown of TrueGate.

1. Core Industry Challenges & Architectural Dilemmas

  • Sub-2-Second Gate Entry Throughput: Verifying visitor authorization, logging vehicle license plates, and dispatching resident approval prompts in under 2 seconds at the security gate.
  • High-Volume Push Notification Delivery: Delivering instant push notifications with 99.9% reliability to residents during delivery courier arrivals.
  • Complex Multi-Head Maintenance Accounting: Automatically calculating square-foot vs flat maintenance charges, penalty interest on overdue accounts, and expense voucher approvals.
  • Offline Gate Terminal Resilience: Ensuring security guard tablets continue logging entries and operating barrier gates during total internet disconnects.

2. Technical Comparison & Architectural Trade-offs

Operational DimensionManual Paper Registers / Legacy AppsTrueGate Enterprise Community ERP (Codeplant)
Gate Entry ProcessingHandwritten paper register; 45s - 90s delaySub-2-second QR passcode scan & AI vehicle number plate recognition
Resident AuthorizationSecurity intercom phone call (often unanswered)Instant interactive mobile push prompt with one-tap Approve/Deny
Maintenance BillingManual paper receipts; delayed cheque depositsAutomated monthly invoice generation + instant UPI/Card payments
Staff & Maid AttendancePhysical biometric punch cards or manual logsFacial recognition tablet check-in with instant resident entry alerts
Amenity Booking LocksDouble-bookings on clubhouse / tennis courtsAtomic calendar booking locks with deposit escrow and cancellation rules
Accounting TransparencyOpaque spreadsheets; annual audit disputesDouble-entry accounting ledger with real-time committee balance sheets

3. Production Implementation Blueprint & Code Pattern

Below is TrueGate's production visitor authorization workflow, dispatching interactive high-priority push notifications to residents and awaiting real-time WebSocket approval:

import { fcmClient } from '../lib/fcm';
import { redisClient } from '../lib/redis';

export interface VisitorEntryRequest {
  societyId: string;
  flatId: string;
  visitorName: string;
  visitorPhone: string;
  purpose: 'DELIVERY' | 'GUEST' | 'CAB' | 'SERVICE';
  guardId: string;
}

export async function dispatchVisitorApproval(req: VisitorEntryRequest) {
  const approvalId = `approval:${req.societyId}:${req.flatId}:${Date.now()}`;

  // 1. Store pending approval in Redis with 90-second expiration TTL
  await redisClient.set(
    approvalId,
    JSON.stringify({ ...req, status: 'PENDING' }),
    'EX',
    90
  );

  // 2. Fetch resident device notification push tokens
  const residentTokens = await getFlatResidentTokens(req.flatId);

  // 3. Dispatch high-priority interactive push notification
  const message = {
    tokens: residentTokens,
    priority: 'high' as const,
    notification: {
      title: `Visitor at Gate: ${req.visitorName}`,
      body: `Arriving for: ${req.purpose}. Tap to approve or deny entry.`
    },
    data: {
      approvalId: approvalId,
      flatId: req.flatId,
      actionRequired: 'TRUEGATE_GATE_APPROVAL'
    }
  };

  await fcmClient.sendMulticast(message);
  return { approvalId, status: 'DISPATCHED_TO_RESIDENT' };
}

4. Production Hardening & High-Concurrency Optimization

  • Offline SQLite Gate Cache: Cache authorized domestic staff, frequent delivery drivers, and resident vehicle tags locally on gate tablets for instant offline verification.
  • Automatic Number Plate Recognition (ANPR): Run lightweight computer vision models on gate cameras to automatically open boom barriers for resident vehicles in under 800ms.
  • Automated Late Fee Compound Engine: Schedule daily background cron workers to calculate calibrated late payment interest on overdue maintenance dues.
  • Panic Alarm Alert Mesh: Broadcast immediate siren alerts to all security guard tablets and committee members when a resident triggers the mobile in-app panic button.

5. Enterprise Security, Governance & Regulatory Compliance

Residential ERP systems manage the physical safety, home addresses, and daily movement patterns of thousands of families. Rigorous data protection is vital.

  • Visitor Mobile Number Masking: Security guards and domestic staff never see unmasked personal phone numbers of residents; all communication routes via masked proxy numbers.
  • Automated Visitor Photo Purge: Automatically purge visitor facial photos after 90 days in compliance with privacy governance and data protection regulations.
  • Strict Multi-Tenant Row-Level Security: Ensure management committee members of Society A can never access or query data belonging to Society B.

6. Real-World Production Context: TrueGate: Transforming Residential Community Operations

TrueGate is Codeplant IT Solution's flagship residential community and facility management ERP deployed across premier townships and gated communities. By implementing TrueGate, housing societies achieve 100% on-time maintenance fee collection, reduce visitor gate congestion by 70%, and establish enterprise-grade physical security for thousands of families.

7. Frequently Asked Technical Questions (FAQ)

How does TrueGate handle security when internet connection drops at the gate?

TrueGate gate tablets operate on an offline-first SQLite cache. Approved staff, registered resident vehicles, and valid pre-invited guest passcodes are validated locally without an internet connection, syncing logs automatically once connectivity returns.

Can residents pay their society maintenance dues through TrueGate?

Yes. TrueGate integrates natively with instant payment gateways (UPI, NetBanking, Credit/Debit cards). Upon payment, the invoice is marked paid instantly, generating automated digital tax receipts and updating the society's bank ledger.

Does TrueGate support clubhouse, swimming pool, and tennis court bookings?

Yes. TrueGate includes an atomic amenity scheduling engine that enforces booking time slots, cancellation rules, refundable deposit holds, and guest pass allocations.

Conclusion & Strategic Engineering Takeaways

Managing modern residential townships requires enterprise-grade software that seamlessly connects physical gate security with automated financial accounting. TrueGate delivers the ultimate community living experience. Contact Codeplant IT Solution to schedule an executive demonstration of TrueGate.