Install Requirements.txt using pip
pip install -r requirements.txt
Generate Fake Data using scripts/generate_data.py
python scripts/generate_data.py
- Please use
Makefile
and go through all the commands.
- If you don't have make installed, you can run the commands from the
Makefile
directly.
make build
or docker build -t rev-insight:v1 .
make run
or docker run --rm --name rev-insight -v ./data/:/app/data -it rev-insight:v1 python3 main.py data/orders.csv data/report.xlsx
make test
or docker run -it --rm --name rev-insight-test $(IMAGE_NAME) python3 -m pytest -v tests
make cov
or docker run -it --rm --name rev-insight-cov $(IMAGE_NAME) python3 -m pytest --cov=app tests/