#!/bin/bash

echo "Setting up Tech Stack Selector..."

# Run database setup
python3 src/setup_database.py

if [ $? -eq 0 ]; then
    echo "Database setup completed successfully"
    echo "Starting Tech Stack Selector Service..."
    python3 src/main_migrated.py
else
    echo "ERROR: Database setup failed"
    exit 1
fi
