Added docker and improved everything.
This commit is contained in:
@ -13,6 +13,13 @@ fi
|
||||
|
||||
echo "✅ Found Python: $(python3 --version)"
|
||||
|
||||
# Check if we're in the right directory
|
||||
if [ ! -f "requirements.txt" ]; then
|
||||
echo "❌ Error: requirements.txt not found!"
|
||||
echo "Please run this script from the project root directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create virtual environment if it doesn't exist
|
||||
if [ ! -d "venv" ]; then
|
||||
echo "📦 Creating virtual environment..."
|
||||
@ -23,10 +30,10 @@ fi
|
||||
echo "🔧 Activating virtual environment..."
|
||||
source venv/bin/activate
|
||||
|
||||
# Install dependencies directly (simpler approach)
|
||||
echo "📚 Installing dependencies..."
|
||||
# Install dependencies from requirements.txt
|
||||
echo "📚 Installing dependencies from requirements.txt..."
|
||||
pip install --upgrade pip
|
||||
pip install fastapi uvicorn[standard] pydantic[email] python-multipart
|
||||
pip install -r requirements.txt
|
||||
|
||||
echo ""
|
||||
echo "🎉 Setup complete!"
|
||||
@ -38,4 +45,4 @@ echo "💡 Press Ctrl+C to stop"
|
||||
echo ""
|
||||
|
||||
# Start the application
|
||||
python main.py --dev
|
||||
python main.py --dev
|
||||
|
Reference in New Issue
Block a user