Développeur d'Application Python - Projet 4
It is recommended to create a dedicated directory to download the project.
In a terminal:
mkdir dir_name
Initialize your local Git repository. In a terminal (in your dedicated directory):
git init
Then clone the remote repository in your local repository with the https link. You will find the https link is in the "code" drop-down menu:
git clone https_project_link
Set a virtual environment before installing the dependencies:
python3.9 -m venv env
To activate your virtual environment:
source env/bin/activate
Then, from the OCR_P4 directory, you can install the python dependencies for the project:
pip install -r requirements.txt
From the OCR_P4 directory launch the program:
python ./main.py
From the OCR_P4 directory generate a new Flake8 report:
flake8 ./ --format=html --htmldir=flake8_rapport
You can generate fake data (1 fake tournament and 1 fake player) with the file fake_data.py
You can empty the data base with the file reset_db.py