default:
    @just --list

# Install dependencies for both backend and frontend
setup:
    cd backend && cargo fetch
    cd frontend && npm install

# Build backend and frontend
build:
    cd backend && cargo build
    cd frontend && npm run build

# Run tests for both backend and frontend
test:
    cd backend && cargo test
    cd frontend && npm test

# Start the stack with Docker Compose
docker:
    docker compose up --build

# Run backend and frontend for development
dev:
    @echo "Starting backend and frontend..."
    (cd backend && cargo run) & (cd frontend && npm run dev) & wait
