- Python 3.12+
- PowerShell
- Git
- Docker Desktop for the container workflow
Expand-Archive enterprise-auth-module-v3.zip
cd enterprise-auth-module-v3
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -r requirements.txt
Copy-Item .env.example .envEdit .env:
DATABASE_URL=sqlite:///./auth_service.db
REDIS_URL=
SECRET_KEY=replace-with-a-long-random-development-secret
ENCRYPTION_SECRET=replace-with-another-long-random-secretInitialize and run:
alembic upgrade head
python -m scripts.seed
uvicorn app.main:app --reloadVisit http://127.0.0.1:8000/docs.
Copy-Item .env.example .env
docker compose up --buildIn a second PowerShell window:
docker compose exec api python -m scripts.seedSet-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\.venv\Scripts\Activate.ps1uvicorn app.main:app --reload --port 8010Remove-Item auth_service.db -ErrorAction SilentlyContinue
alembic upgrade head
python -m scripts.seedThe patched configuration accepts either format:
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
TRUSTED_HOSTS=localhost,127.0.0.1or JSON:
CORS_ORIGINS=["http://localhost:3000","http://localhost:5173"]
TRUSTED_HOSTS=["localhost","127.0.0.1"]