This application requires two API methods /api/info
and /api/timeline
/api/info
This API method returns JSON with possible filtering (list of attributes and list of values for each attribute)
Like this:
{
"asin": [<list of values>],
"brand": [<list of values>],
"source": [<list of values>],
"stars": [<list of values>]
}
/api/timeline/?<params>
This API method returns JSON with timeline information according to input parameters
Like this:
{“timeline”:
[{
“date”: “2019-01-01”,
"value": 10},
...
] }
-
Clone git repo
-
Install docker tutorial
-
sudo docker-compose build app
-
sudo docker-compose up
-
Than you can follow
http://localhost:5000/api/info
orhttp://localhost:5000/api/timeline?<params>
If you want to restart app just enter commands below:
sudo docker-compose down
sudo docker-compose up
-
Clone git repo
-
Install docker tutorial
-
sudo docker-compose build app
-
sudo docker-compose run app sh -c "python manage.py test --coverage"