The Liczer4PG was created to automatic process of counting points at forum PoGrywamy, on which I warmly invite you. Version 1.0.0 is half automatic, because results have to be inscribe manually. There is no possibility to paste stream with results to be parsed and automatically counted. I considered that a program in this form can be treat as version 1.0.0, because it fill my expectations of ease counting points. The next version with major number 2 (2.0.0) should collect events to database, there are models prepared for that, but those are not used yet.
I want that betting at forum to be fun. Cause there is no money for it, only some awards. So I try to write topic of leagues people like or/and watch matches from it, and they will intuitively bet results for them. Therefore I want to have possibility writing more topics without waste of time and then easy to count all points.
To install this flask app, you should clone repo and simple run following command.
pip install path/to/repo
Another method to install, when you don't have pip
command - tested on my oracle virtual machine.
I get error so that is why write sudo before it.
[sudo] python3 setup.py install
The entry point of this is goFlask.py. You shold watch that file to know about endpoints. Set python environment where you have just installed liczer4pg and run following commands
export FLASK_APP=goFlask.py
flask run
Search a Dockerfile, and build an image from it. That build whole application with NGINX as a proxy. This version can be used as standalone instance, I think.
docker image build . -t liczerapi
docker run -d -p 8000:80 liczerapi
This file is special when we have ingress on cluster, so I think there is no need of additional nginx proxy. I want to try do it, that is why I prepare it in that way. If you want create and run that second image you should do following steps.
docker image build -f Dockerfile2 -t liczerapi-alpine
docker run -d -p 8080:5000 liczerapi-alpine