#!/bin/bash
set -e
cd "$(dirname "$0")/.."
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
mkdir -p data/storage data/queue/pending data/queue/processing data/queue/done data/queue/failed
echo "BadNote server setup complete."
echo "Run: source .venv/bin/activate && uvicorn badnote_server.main:app --reload"
echo "To run the OCR worker, also install OCR deps: pip install -r requirements-ocr.txt"
