Skip to content

mantariksh/ledgers

Repository files navigation

Introduction

This is an implementation of the examples in Modern Treasury's "Accounting For Developers" article series. The implementation includes both the example in part 2 of the series, a toy Venmo clone, and the example in part 3 of the series, a lending marketplace.

I have also extended the example in part 3 to use compound interest instead of simple interest.

Note that for the lending marketplace implementation, I've adjusted the interest calculation interval to minutes instead of months, so you can watch a 1-year investment or 1-year loan play out in 12 minutes instead of 12 months.

Getting started

  1. Checkout the relevant commit:
    • 4e7b746 for toy Venmo clone
    • 5ffc66d for lending marketplace with simple interest
    • feeb8cd for lending marketplace with compound interest
  2. Run pnpm install
  3. Run pnpm dev
  4. Run cd apps/backend && pnpm migration:run
  5. Use Bruno and import the bruno folder to call the relevant APIs
  6. Use your SQL database GUI of choice to observe how the account balances change.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published