Table of Contents
python src/main.py
To install the PROJECT NAME, one needs to have all the prerequisites installed and set up, and follow the setup guild. The following sections will guide you through the process.
- Python 3.9 or higher
- Clone the repository
git clone https://github.com/USERNAME/REPONAME.git
cd PROJECT NAME
-
Create and run a virtual environment (optional but recommended).
Create the virtual by running the following command.
python -m venv venv
To use the virtual environment run the following command
source venv/Scripts/activate
source venv/bin/activate
-
Install the required packages
pip install -r requirements.txt
- Create a file called
.env
in the root directory of the project. Add the following lines to the file:
touch .env
echo "SECRET=SECRET_VALUE" > .env # Remember to change SECRET_VALUE to your actual key
To run all the tests, run the following command in the root directory of the project:
pytest --cov
coverage html # To generate a coverage report
If you do not want to run api tests, run the following command instead:
pytest -m "not apitest" --cov
Licensed under the MIT License. Because this is a template repository, you need to change the license if you want to use it for your own project.