A feature limited Point Of Sale (POS) API.
- Install
Python 3.9
,sqlite3
andvirtualenv
. - While on parent directory
Mini-POS/
runbash scripts/setup.sh
- Run
bash scripts/run.sh
from project parent directory.
You can also setup and run this flask api using a docker container, just run the following commands while on parent directory:
sudo docker build --tag python-docker .
sudo docker run -d -p 5000:5000 python-docker
To access the container you can use this command:
sudo docker exec -it $(sudo docker ps | grep python-docker | awk '{print $1}') bash
To stop the container you can use this command:
sudo docker stop $(sudo docker ps | grep python-docker | awk '{print $1}')
To delete the image you can use this command:
sudo docker image rm -f $(sudo docker images | grep python-docker | awk '{print $3}')
- Run
bash scripts/test.sh
from project parent directory to run the unit tests. - Run
bash scripts/coverage.sh
to get the tests coverage, if you want an interactive report with the lines that were executed, runcoverage html
.