This README describes how to clone the repository, prepare a Python environment, install dependencies, and run the backend application.
- Git (to clone the repository)
- Python 3.11 or newer recommended (3.10 may work but some dependencies may require newer versions)
If Python is not installed, download it from python.org and install for your platform. On Windows, enable "Add Python to PATH" during installation or use the installer option to add it to PATH.
Open a terminal and run:
# clone the repository (replace the URL with your repo URL)
git clone <repo path>
cd klesify/backendUse a virtual environment to avoid modifying the system Python environment.
POSIX/macOS (bash):
python -m venv .venv
source .venv/bin/activateWindows (Command Prompt):
python -m venv .venv
.venv\Scripts\activate.batWindows (PowerShell):
python -m venv .venv
.\.venv\Scripts\Activate.ps1Note: this project ignores .venv/ in git (check .gitignore).
With the virtual environment active, install the pinned dependencies from requirements.txt:
pip install --upgrade pip
pip install -r requirements.txtIf you add or update packages locally and want to update requirements.txt, either append a single pinned package:
# example: append current installed fastapi version
echo "fastapi==$(python -c 'import fastapi; print(fastapi.__version__)')" >> requirements.txtor regenerate the full snapshot (overwrites requirements.txt):
pip freeze > requirements.txtIf the project entry point is main.py in this folder, run:
python main.pyIf the app uses Uvicorn to serve FastAPI, run (common for FastAPI projects):
uvicorn main:app --reload
# or if app variable is in app.py: uvicorn app:app --reload- Make sure your virtual environment is active before installing or running, otherwise packages will be installed system-wide or not found.
- If
pythonmaps to an older Python on your system, usepython3or the full path to the desired interpreter. - If package installation fails, check your network, pip version, and whether any system packages (C toolchain) are required for binary wheels.
If you want, I can:
- append a single package to
requirements.txtafter youpip installit locally, or - regenerate
requirements.txtfrom your environment and commit the change.
README created on October 31, 2025.