Presentation: https://docs.google.com/presentation/d/1vuZ5K_S_m97DyilThh3fnGVGYhXs51a4V2VwsipGnSg/edit?usp=sharing
Install
- Copy the code to your disk:
git clone https://github.com/AdamStelmaszczyk/atm.git
. - Change directory to
atm
:cd atm
. - Install conda.
- Create conda environment:
conda create -n atm python=3.7.2
. - Activate conda environment:
source activate atm
. All the below commands should be run in this environment. - Install dependencies:
pip install -r requirements.txt
.
Run tests
./manage.py test
Run server locally
./manage.py runserver
/withdraw
endpoint
Query the curl http://127.0.0.1:8000/withdraw/ --data 'money=280'
Response:
[100,100,50,20,10]