Installation¶
Prerequisites¶
Before installing Depict AI, ensure you have:
- Python 3.12+ - Download Python
- Poetry - Python dependency manager (Install Poetry)
- Node.js 18+ - Download Node.js
- npm - Comes with Node.js
Installation Steps¶
1. Clone the Repository¶
2. Install Backend Dependencies¶
Using Poetry:
This will create a virtual environment and install all Python dependencies including: - FastAPI - SQLModel - httpx (for OAuth2) - python-jose (for JWT) - And more...
3. Install Frontend Dependencies¶
4. Configure Environment Variables¶
Copy the example environment file and configure:
Edit .env to set:
- JWT secret key
- OAuth2 credentials (optional)
- Database URL
- Sentry DSN (optional)
See Authentication Setup for social login configuration.
Verify Installation¶
Start Backend Server¶
Backend will be available at: http://localhost:8000
API documentation at: http://localhost:8000/docs
Start Frontend Server¶
Frontend will be available at: http://localhost:3000
Useful Commands¶
# Install dependencies
poetry install
cd src/frontend
npm install
# Run backend
cd ../backend
poetry run fastapi dev endpoints.py
# Run frontend
cd ../frontend
npm run dev
# Run tests
cd ../..
poetry run pytest
# Serve docs
poetry run mkdocs serve
Troubleshooting¶
Poetry Command Not Found¶
Install Poetry:
Add to PATH (check Poetry documentation for your OS).
Python Version Issues¶
Check your Python version:
Set Poetry to use specific Python:
Node/npm Issues¶
Ensure Node.js 18+ is installed:
Clear npm cache if needed:
Port Already in Use¶
If port 8000 or 3000 is already in use, you can change them:
Backend: Edit uvicorn command port
Frontend: Edit nuxt.config.ts or run npm run dev -- --port <PORT>