Installation¶
This guide covers detailed installation instructions for the Fleet Decision Platform.
System Requirements¶
Minimum Requirements¶
| Component | Requirement |
|---|---|
| CPU | 2 cores |
| RAM | 4 GB |
| Storage | 10 GB |
| OS | macOS, Linux, Windows (WSL2) |
Recommended for Production¶
| Component | Requirement |
|---|---|
| CPU | 8+ cores |
| RAM | 16+ GB |
| Storage | 100+ GB SSD |
| OS | Ubuntu 22.04 LTS |
Step 1: Install Prerequisites¶
Step 2: Clone Repository¶
# Clone via HTTPS
git clone https://github.com/yourusername/fleet-cascade.git
# Or clone via SSH
git clone git@github.com:yourusername/fleet-cascade.git
# Navigate to project
cd fleet-cascade
Step 3: Install Dependencies¶
# Install production dependencies
uv sync
# Verify installation
uv run python -c "import src; print(f'Version: {src.__version__}')"
Optional: Install Development Dependencies¶
# Install all optional dependencies
uv sync --all-extras
# Set up pre-commit hooks
uv run pre-commit install
Step 4: Configure Environment¶
# Copy environment template
cp .env.example .env
# Edit with your credentials
nano .env # or use your preferred editor
Required Environment Variables¶
| Variable | Description | Required |
|---|---|---|
KAGGLE_USERNAME |
Kaggle API username | For data download |
KAGGLE_KEY |
Kaggle API key | For data download |
POSTGRES_* |
Database credentials | Phase 2+ |
Step 5: Verify Installation¶
# Run health check
uv run python -c "
from src.utils.config import load_config
config = load_config()
print('✓ Configuration loaded')
print(f' Forecasting model: {config[\"forecasting\"][\"model\"]}')
print(f' Optimization solver: {config[\"optimization\"][\"solver\"]}')
"
# Run tests
uv run pytest tests/ -v --tb=short
Troubleshooting¶
uv command not found
Ensure uv is in your PATH:
Add this to your~/.bashrc or ~/.zshrc.
Python version mismatch
Check your Python version:
If needed, install Python 3.12 and set as default.Permission denied errors
Ensure you have write access to the project directory:
Next Steps¶
- Quick Start Guide - Run your first optimization
- Configuration Guide - Customize settings
- Download Data - Get sample datasets