Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 1.27 KB

README.md

File metadata and controls

47 lines (39 loc) · 1.27 KB

Overview

Users can transfer the balance now or later in bulk. After every successful transfer, a transaction history will be created for both accounts. A cash transaction(withdrawal or deposit) option is also available. In case of transfer failure, no transaction history will be made and the source account's balance will be adjusted.

Features:

  • Account Creation
  • Instant Balance Transfer
  • Scheduled Balance Transfer
  • Multiple transfers in a single request
  • Cash Transaction (deposit or withdrawal)
  • Multiple cash transaction in a single request
  • Transaction History of every transaction takes place in database
  • Unit Test included

How to run

preparing django server

git clone [email protected]:omariut/Schedule-Balance-Transfer-API.git
cd Schedule-Balance-Transfer-API
virtualenv venv
pip install requirements.txt
python manage.py makemigration
python manage.py migrate
python manage.py runserver

prepearing celery

run the below commands in two different terminals

celery -A balance_transfer worker -l info
celery -A balance_transfer beat -l info

install redis server

https://redis.io/download/

run redis server

redis-server

Documentation: