Works with PostgreSQL.
##Implement 4 api methods:
- / api / ping (service health)
- / api / add (balance top-up)
- / api / substract (decrease balance)
- / api / status (balance balance, account opened or closed)
For "add" and "substract" methods, the Request must contain data in the form
{
"id": id account (str),
"money": the amount of money to complete the operation
}$ docker-compose up$ pip install -r requirements/development.txt$ docker-compose up -d postgres$ vi config/settings/local.pyPut your local settings in the local.py, you can override settings
consider your local environment. Start with lines below:
from .base import *$ ./manage.py migrateThe project will use E-Mail address as username.
$ ./manage.py createsuperuser