- Update main app title in Angular frontend - Update FastAPI application title and API endpoints - Update static HTML index page - Update all quickstart scripts (bash, PowerShell, batch) - Update README files (main and frontend) - Maintain ◆ symbol in headers All references to "Obsidian" have been replaced with "Warehouse13" throughout the application. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
81 lines
2.2 KiB
Bash
Executable File
81 lines
2.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "========================================="
|
|
echo "Warehouse13 - Quick Start"
|
|
echo "========================================="
|
|
echo ""
|
|
|
|
# Check if Docker is installed
|
|
if ! command -v docker &> /dev/null; then
|
|
echo "Error: Docker is not installed. Please install Docker first."
|
|
exit 1
|
|
fi
|
|
|
|
# Check if Docker Compose is installed
|
|
if ! command -v docker-compose &> /dev/null; then
|
|
echo "Error: Docker Compose is not installed. Please install Docker Compose first."
|
|
exit 1
|
|
fi
|
|
|
|
# Create .env file if it doesn't exist
|
|
if [ ! -f .env ]; then
|
|
echo "Creating .env file from .env.example..."
|
|
cp .env.example .env
|
|
echo "✓ .env file created"
|
|
else
|
|
echo "✓ .env file already exists"
|
|
fi
|
|
|
|
echo ""
|
|
echo "Building and starting services with Docker Compose..."
|
|
docker-compose up -d --build
|
|
|
|
echo ""
|
|
echo "Waiting for services to be ready..."
|
|
sleep 10
|
|
|
|
echo ""
|
|
echo "========================================="
|
|
echo "Services are running!"
|
|
echo "========================================="
|
|
echo ""
|
|
echo "API: http://localhost:8000"
|
|
echo "API Docs: http://localhost:8000/docs"
|
|
echo "MinIO Console: http://localhost:9001"
|
|
echo " Username: minioadmin"
|
|
echo " Password: minioadmin"
|
|
echo ""
|
|
echo "To view logs: docker-compose logs -f"
|
|
echo "To stop: docker-compose down"
|
|
echo ""
|
|
echo "========================================="
|
|
echo "Testing the API..."
|
|
echo "========================================="
|
|
echo ""
|
|
|
|
# Wait a bit more for API to be fully ready
|
|
sleep 5
|
|
|
|
# Test health endpoint
|
|
if curl -s http://localhost:8000/health | grep -q "healthy"; then
|
|
echo "✓ API is healthy!"
|
|
echo ""
|
|
echo "Example: Upload a test file"
|
|
echo "----------------------------"
|
|
echo 'echo "test,data" > test.csv'
|
|
echo 'curl -X POST "http://localhost:8000/api/v1/artifacts/upload" \'
|
|
echo ' -F "file=@test.csv" \'
|
|
echo ' -F "test_name=sample_test" \'
|
|
echo ' -F "test_suite=demo" \'
|
|
echo ' -F "test_result=pass"'
|
|
echo ""
|
|
else
|
|
echo "⚠ API is not responding yet. Please wait a moment and check http://localhost:8000/health"
|
|
fi
|
|
|
|
echo "========================================="
|
|
echo "Setup complete! 🚀"
|
|
echo "========================================="
|