The Account Transfer Task is a Django web application designed to facilitate fund transfers between accounts. It supports importing account data from CSV files, listing accounts, retrieving account details, and transferring funds between any two accounts.
- Import Accounts from CSV Files:
- Allows uploading a CSV file containing account details (ID, name, balance) to import accounts into the system.
- List All Accounts:
- Displays a paginated list of all accounts currently stored in the system.
- Get Account Information:
- Provides detailed information about a specific account, including its current balance.
- Transfer Funds Between Two Accounts:
- Enables users to transfer funds from one account to another. Checks for sufficient balance and prevents transfers between the same account.
To run the Account-Transfer project locally, follow these steps:
-
Clone the repository: Clone this repository to your local machine using the following command:
git clone https://github.com/MohamedSalahdj/Account-Transfer.git
-
Create a Virtual Environment (Optional): It's recommended to create a virtual environment to manage project dependencies. You can create one using
virtualenv
orvenv
:python -m venv myenv
Activate the virtual environment:
source myenv/bin/activate # for Linux/Mac myenv\Scripts\activate.bat # for Windows
-
Install dependencies:
pip install -r requirements.txt
-
Make migration && migrate
- python manage.py makemigrations - python manage.py migrate
-
Start the development server Start the Django development server:
python manage.py runserver
To run the test suite for the Account-Transfer project, follow these steps:
python manage.py test