Simple webservice for saving information about sales of food in snack bars.
Educational project for Online Python External program
Project is created with:
- Python
- Flask
- VueJs
To run this project, install it locally using pip First run backend For Linux or Mac
export FLASK_APP=sales
export FLASK_ENV=development
flask run
To run with gunicorn use for example command
gunicorn -b localhost:5000 -w 2 wsgi:app
To run web client (frontend)
cd client
npm run serve
then in browser open http://localhost:8080/food
Using of unit test
python -m unittest discover
Using of coverage
coverage run -m unittest discover
coverage report
or for only for backend
coverage run --source=sales -m unittest discover