Install UV then setup the virtual environment
uv venvInstall ffmpeg (required for Whisper model)
# Ubuntu
sudo apt update && sudo apt install ffmpeg
# MacOS
brew install ffmpegInstall PostgreSQL
# Ubuntu
apt install postgresql
# MacOS
brew install postgresqlInstall Docker and verify installation
dockerInstall project dependencies. Specify either cpu or gpu.
# Pytorch w/ CPU
uv sync --extra cpu
# Pytorch w/ GPU
uv sync --extra gpuInstall pre commit hooks and format files
pre-commit install
pre-commit run --all-filesCreate .env file and set variables
cp .env.example .envCreate dbs
# Dev db
createdb -h localhost -p 5432 -U postgres 'rpg-encounters'
# Test db
createdb -h localhost -p 5432 -U postgres 'rpg-encounters-test'Manage db
# Create
uv run python -m app.db.init_db
# Migrate
uv run alembic -c alembic.ini upgrade head
# Seed defaults
uv run python -m tests.fixtures.seed_data
# Seed defaults for specific email
uv run python -m tests.fixtures.seed_data --email <USER_EMAIL>Launch backend services following usage instructions and verify with tests
uv run pytestCreate migration revision
uv run alembic -c alembic.ini revision -m "describe_change"