Installation¶
This guide covers setting up Duckling for local development.
Prerequisites¶
- Python 3.10+ (3.13 recommended)
- Node.js 18+
- npm or yarn
- Git
Step-by-Step Installation¶
1. Clone the Repository¶
2. Backend Setup¶
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
3. Frontend Setup¶
4. Build Documentation (Optional)¶
To view documentation within the Duckling UI, build the MkDocs site:
Auto-Build
If MkDocs is installed, the backend will automatically build the documentation when you first open the docs panel in the UI.
Environment Configuration¶
Backend Environment Variables¶
Create a .env file in the backend directory:
# Flask Configuration
FLASK_ENV=development
SECRET_KEY=your-secret-key
DEBUG=True
# File Handling
MAX_CONTENT_LENGTH=104857600 # 100MB
Production Security
In production, always set a strong SECRET_KEY and set DEBUG=False.
Verifying Installation¶
Check Backend¶
You should see:
Check Frontend¶
You should see:
Troubleshooting¶
Python Version Issues¶
If you encounter Python version issues:
Node.js Version Issues¶
Dependency Installation Failures¶
# Backend - try upgrading pip
pip install --upgrade pip
pip install -r requirements.txt
# Frontend - clear cache
rm -rf node_modules package-lock.json
npm install
Next Steps¶
- Quick Start - Learn the basics
- Configuration - Customize settings