- node ^12.0
- mongodb ^4.0
- redis (for job queue)
- run mongodb (the code contain transfer feature with transaction). to run mongo transaction feature run with
mongod --replSet rs0
- run redis
- dump database using
mongorestore --archive=example_data
npm install
npm start
ornpm test
- bull dashboard queue can be accessed from
localhost:3000/queues
attached postman request in a file called bank.postman_collection.json
-
test not finished for
- authentication
- account transfer
-
there's 2 methods for account trasnfer
-
without mongodb transaction
doDirectTransaction
method (default) -
with mongodb transaction
doTransaction
method (commented)