Back to all projects
Tutor Book: Private Tuition Ledger & Scheduling Platform
Full Stack Development•2026-11-21

Tutor Book: Private Tuition Ledger & Scheduling Platform

A phone-first tuition ledger and scheduling platform for private tutors to track student rosters, record classes with atomic rate snapshots, automate monthly billing, and settle payments.

Timeline

Nov 2026

Role

Full Stack Developer

Primary

Next.js 16.4.6

Problem Domain & Architecture

Tutor Book is a specialized tuition accounting and scheduling platform engineered specifically for independent private tutors operating in Bangladesh (defaulting to the Asia/Dhaka timezone and BDT currency). Built with a phone-first philosophy, the application allows tutors to log class attendance with a single tap between sessions on their mobile devices, while providing a comprehensive financial account book on desktop for month-end reconciliation. Rather than storing mutable, error-prone balance columns, Tutor Book computes all student balances, monthly bills, and earnings dynamically from underlying immutable transaction records using PostgreSQL views and atomic PL/pgSQL stored procedures. The system supports both per-class and fixed monthly fee models, automated 4-week forward scheduling from recurring weekly slots, formula-injection-safe CSV export, and one-click Google Sheets synchronization via Google OAuth drive.file permissions.

Application Screenshots

Click to expand

Key Capabilities & Features

Core Accounting & Ledger Mechanics

Dynamic Transaction Math

Computes student balances, earnings, and monthly bills dynamically from immutable transaction rows without mutable balance drift.

Dual Billing Engine

Supports both per-class rates and fixed monthly fee structures with automatic first-of-the-month billing records.

One-Tap Attendance Logging

Quick-tap class recording with atomic rate snapshotting, client-side idempotency keys, and 10-second soft-delete undo.

Payment Ledger & Month Allocation

Records payments across cash, bank, bKash, and Nagad, allocating payments explicitly to specific billing months.

Timetable & Forward Scheduling

Recurring Weekly Timetable

Configurable weekday slots that automatically generate scheduled classes 4 weeks (28 days) in advance.

Saturday-First Calendar Grid

Visual monthly grid aligned with the Bangladeshi academic work week with color-coded attendance indicators.

Student Lifecycle Safeguards

Archiving a student instantly deactivates weekly slots and cancels future scheduled classes via database triggers while preserving past logs.

Security, Privacy & Data Architecture

Multi-Tenant Row-Level Security

Strict per-tutor data isolation enforced at the PostgreSQL layer via tutor_id = auth.uid() and composite foreign keys.

Audit Trail Logging

Append-only change_log table capturing before/after JSONB snapshots on class and payment mutations.

Scoped Google Sheets Sync

Minimal drive.file OAuth scope allowing the app to create and write only to spreadsheets it generates, protecting user Drive files.