- Python 3.12+ (check with
python --version) - Docker (for PostgreSQL)
- uv package manager
-
Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh -
Install dependencies
uv sync
-
Set up environment variables
Create
.envfile in project root:SECRET_KEY=your-secret-key-here DEBUG=True DATABASE_URL=postgres://makerdb:makerdb@localhost:5432/makerdb
Generate a secret key:
python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())" -
Start PostgreSQL
docker compose up -d
-
Run migrations
uv run python backend/manage.py migrate
-
Create superuser (optional, for admin access)
uv run python backend/manage.py createsuperuser
-
Start development server
uv run uvicorn makerdb.asgi:application --reload --app-dir backend
The server will be available at:
- API: http://localhost:8000/api
- Admin Panel: http://localhost:8000/cp
- Health Check: http://localhost:8000/api/health