Skip to content

An example lightweight event sourcing system for payments

License

Notifications You must be signed in to change notification settings

SharonU/test-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example lightweight event sourcing system for payments

Supports the following API operations:

  • Deposit (account_number, amount)
  • Withdraw (account_number, amount)
  • Transfer (originator_account, beneficiary_account, amount)

In this example prohect, the operations payload transform to events and are published to a system of record (in this example, nats streaming).

The µservice consumes the events from the system of record, calculates the balance for each account and updates a state database

Running

Install Docker & Docker-Compose

Then:

git clone https://github.com/SharonU/test-app test-app
cd test-app
# start it up
docker-compose up

Open http://localhost:3000 (or {docker ip}:3000 on windows) to view it in the browser.

About

An example lightweight event sourcing system for payments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 34.7%
  • Rust 31.2%
  • Shell 25.0%
  • HTML 4.9%
  • CSS 3.3%
  • Dockerfile 0.9%