
Project facts
- Period
- April–September 2026
- Context
- Personal project
- Team
- solo
- Access
- Public code and live demo
- Hosting
- Render, MongoDB Atlas
- Role
- Design, Express API, React interface, tests and Docker deployment on Render.
- Stack
- Node.jsExpressMongoDBReactTailwind CSSDocker
Contents
Summary
- For
- Organizers and members of rotating savings groups (tontines) and group loans.
- Problem
- A tontine organizer tracks by hand who has paid, who owes how much and which penalties apply, on paper or in an Excel file. When a mistake is fixed by deleting a row, no trace remains, which fuels disputes between members.
- Outcome
- Personal demo project: application deployed, 32 passing automated tests, no real users to date.
Overview
Problem
A tontine runs on trust: every member contributes each cycle, and members take turns receiving the pot. When tracking happens on paper or in a spreadsheet, the organizer recalculates late payments, debts and penalties by hand. A mistake fixed by overwriting a value wipes out the original information, and nobody can check how a balance was reached.
My contribution
Personal project built solo, from April to September 2026 (162 commits): data modeling, Express API, React interface, tests, Docker containerization and deployment on Render.
Solution
For the group organizer
- Create groups, members and contribution cycles.
- Late penalties applied by a scheduled job.
- Transaction corrections recorded as reversal and replacement entries, visible in the history.
- PDF export of a cycle and Excel export of a group.
For members
- Track your contributions, your debts and your transaction history.
- Reminders before due dates and late-payment alerts as in-app notifications, with amounts shown in your chosen currency.
Results
- 32passing automated tests (4 suites)Source · npm test, run on Nov 13, 2026
- 42.6%of lines covered by testsSource · jest --coverage, run on Nov 13, 2026
- 42declared API routesSource
- 6Mongoose data modelsSource
No real users to date: this is a personal demo project.
Try it
The Render instance goes to sleep when idle: the first load takes 15 to 25 seconds.
Demo account
- alice@test.com
- Password
- Alicee123
Demo-only account, with fictitious data.
Technical details
Key decision
Append-only financial transactions: a correction creates a reversal entry followed by a corrected entry, inside a MongoDB transaction.
Keep the full history: a member's balance is recalculated from the entries, and every correction stays visible.
Show technical details
Key decision and alternatives considered
- 01
- Choice
- Append-only financial transactions: a correction creates a reversal entry followed by a corrected entry, inside a MongoDB transaction.
- Alternatives considered
- Soft delete: flag the wrong transaction as “cancelled” without erasing it.
- Reason
- Keep the full history: a member's balance is recalculated from the entries, and every correction stays visible.
Architecture
The API follows a controller → service → model split: the controller validates the request, the service holds the business rules (debt calculation, offsetting entries), and the model describes the Mongoose schema. Cron jobs run in the same process as the API: closing expired cycles, applying penalties, 3-day reminders, late-payment alerts and notification cleanup.
Security
- JWT access token and refresh token stored in an
httpOnlycookie, rotated on every refresh. - HTTP headers via Helmet, restricted CORS, rate limiting on the API and on authentication routes.
- Transaction corrections restricted to the group admin, checked in the service layer.
Testing and quality
Integration tests run against an in-memory MongoDB database (MongoMemoryServer), with no connection to Atlas. They cover authentication, groups and contributions; unit tests cover the financial calculations. Tests do not run in continuous integration: they are run by hand.
Limitations
- 01Immutability is enforced by the API code (no update or delete route, schema without updatedAt), not by the database: direct access to MongoDB could still modify an entry.
- 02A correction is only possible within 24 hours of entry; after that, the admin has to record a manual refund.
- 03Multi-currency exchange rates are hard-coded (server/src/utils/currency.js) and are not updated from an external source.
- 04Test coverage: 42.6% of lines, 27.4% of branches.
- 05The demo is hosted on Render: the first load is slow after a period of inactivity.
Contact
Need something similar? Let’s talk.
Describe your project through the form, WhatsApp or email.