π Local DeploymentΒΆ
This guide walks you through running ContextForge on your local machine using a virtual environment or directly via Python.
π One-Liner SetupΒΆ
The easiest way to start the server in development mode:
This does the following:
- Creates a
.venv/virtual environment - Installs all dependencies (including dev tools)
- Launches Gunicorn on
http://localhost:4444
π§ͺ Development Mode with Live ReloadΒΆ
If you want auto-reload on code changes:
Ensure your
.envfile includes:
π Database ConfigurationΒΆ
By default, ContextForge uses SQLite for simplicity. You can configure alternative databases via the DATABASE_URL environment variable:
Database Recommendation
Use SQLite for development and testing. For production deployments, use PostgreSQL for better concurrency, performance, and reliability.
π§ͺ Health TestΒΆ
Expected output:
π Admin UIΒΆ
Visit http://localhost:4444/admin and login using your PLATFORM_ADMIN_EMAIL and PLATFORM_ADMIN_PASSWORD from .env.