This repository consists of the basic functionalities for an ATM machine using Django.
Minimum Requirement :
-
Create an API to register a user's card (8-digits) and ATM Pin (4-digits)
-
Create an authentication API to validate the user by 8-digit card number and 4-digit ATM pin.
-
Create an API to deposit the money in the user's account.
-
Create an API to withdraw the money from the user's bank account.
NOTE: Keep the following things in considerations:
1- ATM Machine should always give the least number of notes (example: if the user withdraw Rs 2500, the ATM machine should give 1 note of Rs 2000 and 1 note of Rs 500)
2- The number of notes should be reduced/increase in ATM on every transaction.
3- The user cannot withdraw more than Rs 20,000 in one transaction.
pip install -r requirements.txt
virtualenv venv
source venv/bin/activate
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser
python3 manage.py runserver