A session-authenticated, strict MVC web platform built with Node.js, Express.js, MongoDB Atlas, and EJS templates—empowering rural Self-Help Groups (SHGs) to record monthly pooled savings, approve micro-loans, automate exact repayment schedules, and flag overdue accounts.
Rural Self-Help Groups (SHGs) manage collective community funds—pooling recurring monthly deposits and issuing micro-loans—mostly inside handwritten registers. Manual bookkeeping leads to silent reconciliation errors, duplicate entry disputes, and delayed recognition of overdue repayments.
Manual registers allow accidental double-recording or skipped months, making member corpus totals hard to verify.
Dividing principal + simple interest manually over uneven tenures introduces paise discrepancies on final settlement.
Identifying overdue instalments requires flipping page-by-page across member passbooks every month.
I built SHG SAHAYAK—a role-based full-stack MVC web application backed by MongoDB Atlas that enforces atomic monthly savings constraints, auto-generates exact instalment schedules upon loan approval, verifies UPI/cash payments, and gives members a live digital passbook.
Enforces unique (memberId, month) database constraints so monthly
savings contributions can never be double-logged.
Computes Simple Interest schedules where the final instalment automatically absorbs cent remainders so totals balance to ₹0.00.
Flags overdue accounts automatically whenever dueDate < today
and auto-closes loans once balance reaches zero.
When generating monthly schedules, all values round cleanly to 2 decimal places while the final instalment automatically absorbs any residual cent variance so sums always match total payable.
Uses a compound Mongoose unique index on (memberId, month) to
enforce once-per-month savings deposits while updating cumulative member totals and running balances
chronologically.
Members preview live EMIs across ₹500–₹2,00,000 before submitting. Admin approval spawns sequential instalments; each verified payment recalculates balance and auto-closes settled loans.
Backed by connect-mongo persistent sessions and
bcryptjs hashes. Route guards enforce isAdmin / isMember
permissions while surfacing overdue defaulters dynamically.
Automated unit & HTTP integration suites validate Simple Interest math, instalment cent absorption, UPI payment verification, and defaulter state transitions.
admin@shg.org — Record savings, approve loans, verify UPI payments
& manage defaulters.anita@shg.org — Active ₹12,000 loan with overdue instalment
scenario for defaulter triage.kavita@shg.org — Pending micro-loan application queued for Admin
approval workflow.pooja@shg.org — Completed & closed loan history plus confirmed
savings passbook ledger.