Skip to content

Installation and Development Environment

Dave Walker edited this page Nov 6, 2026 · 2 revisions

ReefTag is a local Python desktop application built with PySide6 (Qt) and SQLite. Its database schema is managed with yoyo-migrations. The application must be run from a Python environment.

Prerequisites

  • Python, at a version supported by the repository's pyproject.toml
  • Git, to clone the source
  • A desktop environment capable of running Qt/PySide6 applications
  • A writable location for the local SQLite database

The instructions below use macOS or another Unix-like shell. On Windows, virtual-environment activation and environment-variable syntax differ.

Obtain the Source

git clone https://github.com/davewalker5/ReefTag.git
cd ReefTag

Create and Activate a Virtual Environment

From the project root:

python3 -m venv .venv
source .venv/bin/activate

Check that the expected interpreter is active:

python --version
python -m pip --version

Install the Application in the Virtual Environment

python -m pip install --upgrade pip
python -m pip install -e .

Configure the Database

ReefTag uses the REEFTAG_DB_PATH environment variable to identify its SQLite database file. Set it to an absolute path to a file, not merely a directory. For example:

mkdir -p "$HOME/Documents/ReefTag"
export REEFTAG_DB_PATH="$HOME/Documents/ReefTag/ReefTag.sqlite3"

Pending yoyo migrations are applied automatically on startup and the database path's parent directory must be writable. Keep a backup of an existing database before upgrading or changing schema versions.

Run the Application

source .venv/bin/activate
python -m reef_tag

See User Guide for the complete workflow for using the application.