API Docs (http://127.0.0.1:8000/docs)
- Python 3
- virtualenv
- PostrgreSQL 9.5 or higer
psql < pg.sql
pip install virtualenv --user
virtualenv -p python3 /tmp/coins-env
source /tmp/coins-env/bin/activate
pip install -r requirements.txt
Got to project dir and run:
./manage.py migrate
./manage.py loaddata accounts
./manage.py test
./manage.py runserver
Got to project dir and run:
pylint --load-plugins pylint_django coins
curl http://127.0.0.1:8000/v1/accounts
curl -X POST -H 'content-type: application/json' -d '{"from_account": "bob123", "to_account": "alice456", "amount": 100}' http://127.0.0.1:8000/v1/payments
curl http://127.0.0.1:8000/v1/accounts