Build a simulation of 'Bering Bank' that allows users to perform the following operations:
- Create user account
- Register cards(plural!)
- Disable card
- Enable card
- Check account balance
- Withdraw cash
- Deposit cash
cd app/bank
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
- Open the app in
http://127.0.0.1:8000/
- First create account in
http://127.0.0.1:8000/sign-up/
- Then register card in
http://127.0.0.1:8000/card/
and play!
pytest
Tests are found in
cards/tests.py
andusers/tests.py
python manage.py createsuperuser
Admin panel can be found in
http://127.0.0.1:8000/admin/