m7vv / sales2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sales 2021

GitHub Stars GitHub Issues Current Version Coverage Status

Simple webservice for saving information about sales of food in snack bars.

Table of contents

General info

Educational project for Online Python External program

Technologies

Project is created with:

  • Python
  • Flask
  • VueJs

Setup

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

Testing

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

About


Languages

Language:Python 80.3%Language:Vue 17.2%Language:JavaScript 1.1%Language:HTML 0.8%Language:Mako 0.6%