
Image 1 of 3
Project Description & Specifications
Full architecture overview and implementation details
Cooperative Banking Platform (AG Mark Nidhi Limited)
A high-performance, multi-tenant core cooperative banking system (CBS) purpose-built for credit unions, thrift cooperatives, and community banking institutions.
🌐 Live Position (as of 2026-11-06)
| Production | Development | |
|---|---|---|
| Address | https://agmarknidhi.com | this Mac (localhost:41656) |
| Server | Hostinger VPS 189.72.145.140 | local |
| Database | coop_banking_prod (legacy through 28 Oct 2026 plus fixes) | coop_banking_staging (not production) |
| Live release | v1.0.0-rc1 | working copy |
Deploy with one command: scripts/deploy/deploy.sh <tag> (backup, build, optional migrate, switch, health check, automatic rollback). Back up off-site with scripts/ops/pull_prod_backup.sh.
Rules, recovery steps, backup schedule and the go-live checklist are in docs/PRODUCTION_RUNBOOK.md. Read it before touching production.
🏛️ Authentic Core Banking Status & Master Registry
The system has been completely cleansed and reconciled against authentic banking records (agmarkoct.rar / agmarkdb through October 28, 2026). All dummy test entries (MB-2026-..., mock plans, dummy approvals) have been permanently purged.
Authoritative Entity Ledger Counts:
- Registered Members (CIF): 6,188 authentic members (
M00001–M06214) - Pending Maker-Checker Queue: 0 (Pristine, 0 mock approvals)
- Deposit Accounts (Total): 15,434 accounts (100% parent-linked to members)
- ↳ Daily Deposit Scheme (DDS): 8,933 accounts (₹39,57,29,350 contractual portfolio)
- ↳ Recurring Deposits (RD): 5,259 accounts
- ↳ Fixed Deposits (FD): 1,209 accounts
- ↳ Monthly Income Scheme (MIS): 33 accounts
- Member Share Certificates: 6,190 allotments (₹14,12,540 capital)
- Active / Serviced Loans: 522 loan contracts
- Loan Recovery Transactions: 36,800 records
- General Ledger Vouchers: 37,937 double-entry postings
- Operating Branches: 12 canonical branches (
001to012, strictly retaining leading zeros) - Authentic Master Schemes: 92 plans (Permanently locked in DB via triggers)
- Authentic Staff Directory: 23 officers & executives (Permanently locked in DB via triggers)
- Raw Audit Tables: 223 tables in
agmark_raw(5,148,488 records)
📦 Golden Master Production Backup Package
Authoritative, versioned production backups are preserved in backups/00_golden_production_master_20261029/:
| Package / Artifact | Size | Format | MD5 Checksum | Purpose |
|---|---|---|---|---|
Agmark_Postgres_Golden_Master_Clean_20261029.sql.gz | 140 MB | Postgres SQL (Gzip) | 340f58d4dd7ecf635410321181e5c0c1 | Full database: public core CBS + all 223 agmark_raw audit tables |
Agmark_Postgres_Public_Core_Clean_20261029.sql.gz | 18 MB | Postgres SQL (Gzip) | 4c44e288834f2285dec0822a85b5c939 | Lightweight Core: Exclusively public schema for web/app servers |
Agmark_MSSQL_Golden_Master_Raw_20261029.bak | 1.2 GB | MS SQL Native | f5ebf4736d17260c5a27a1cbab6d8891 | Authoritative MS SQL Server 2022 raw backup |
restore_golden_master.sh | 4 KB | Bash Script | — | 1-click restore script with automatic validation |
production_golden_master_manifest.json | 2 KB | JSON Manifest | — | Machine-readable checksums, schema metadata, and counts |
1-Click Restore to Production:
# Full restore (Core CBS + 223 Raw Audit tables) cd backups/00_golden_production_master_20261029 bash restore_golden_master.sh coop_banking_production # Or fast core restore (App schema only) bash restore_golden_master.sh coop_banking_production --core
Automated Reconciliation & Zero-Discrepancy Probe:
python3 scripts/migration/validate_reconciliation.py
📁 Clean Directory Organization
The codebase has been refactored into clean, dedicated domains:
frontend/— Next.js 16 (React 19) core banking portal (Admin, Teller, Members, Accounts, Loans, Accounting).backend/— Laravel 11 / PHP 8.2+ core banking REST engine and double-entry accounting ledger.mobile/— React Native / Expo mobile application for branch field collection agents.backups/— Production archives, MSSQL dumps, and forensic audit catalogs.00_golden_production_master_20261029/— Pristine, production-ready golden master.01_mssql_raw_backups/— Raw MS SQL.bakarchives.02_postgres_staging_and_raw/— PostgreSQL raw import schemas.04_giant_bcp_tables_tsv/— BCP bulk-exported transaction datasets.
scripts/— Automated engineering and migration utilities:migration/— Pure production import, synchronization, and reconciliation scripts.pos_hardware_tools/— Thermal POS and field-device sync listeners.forensic_audits/— Data consistency and ledger integrity checkers.
docs/— Architectural, financial, and regulatory documentation.
🌐 Domain & Routing Architecture
Integrated into BotDigit's Cloudflare Tunnel ecosystem:
| Service | Public Subdomain | Local Port | Target Technology |
|---|---|---|---|
| Frontend Portal (Primary) | https://coopbank.botdigit.site | 41656 | Next.js 16 (React 19) |
| Frontend Portal (Alias) | https://banking.botdigit.site | 41656 | Next.js 16 (React 19) |
| Frontend Portal (.net) | https://coopbank.botdigit.net | 41656 | Next.js 16 (React 19) |
| REST API Engine (Primary) | https://api-coopbank.botdigit.site | 41657 | Laravel 11 / PHP 8.2+ |
| REST API Engine (Alias) | https://api-banking.botdigit.site | 41657 | Laravel 11 / PHP 8.2+ |
API Proxy & Reverse Proxy
The frontend (Next.js) is configured with automatic reverse-proxy rewrites (/api/:path* -> http://127.0.0.1:41657/api/:path*). Frontend requests to /api/... on https://coopbank.botdigit.site route seamlessly to the backend with zero CORS issues.
🚀 Local Development & Startup
Option A: BotDigit Master Orchestrator (Recommended)
From /Volumes/Mac2TB/Botdigit/Developer/Infrastructure:
# Verify port allocation and active status ./infra.sh verify-ports # Start all projects (including Cooperative Banking Web & API) ./infra.sh start projects # Run live endpoint routing health probe ./infra.sh test
Option B: Individual Service Startup
1. Start Backend API (Port 41657)
cd backend php artisan serve --host=127.0.0.1 --port=41657
2. Start Frontend Portal (Port 41656)
cd frontend PORT=41656 npm run start -- -p 41656
Git-Sync Architecture
Auto-sync your codebase with the creator's secure GitHub repo. No manual ZIP downloads.
This premium agency is verified by Botdigit to sell high-quality digital templates, services, and software frameworks.
Frequently Asked Questions
Link your repo to auto-sync downstream branches from the creator.
Built for clean parsing by Claude, GPT-4o, Cursor, and Copilot — fully modular.