# chb-HAOJING oTree Project This is an oTree experiment repository with three main sessions: - `AI_Consultant_session`: apps `Introduction` + `AI_Consultant` - `Human_Consultant_session`: apps `Introduction` + `Human_BeforeChat` + `Human_Consultant` - `Control_session`: app `Control` ## Requirements - Python 3.8+ (tested on 3.12) - virtualenv - Windows PowerShell or bash ## Setup 1. Open terminal in project root: ```powershell cd "C:\Users\fzhao83\OneDrive - Georgia Institute of Technology\chb-HAOJING" ``` 2. Create a virtualenv: ```powershell py -3 -m venv .venv ``` 3. Activate the venv: ```powershell .venv\Scripts\Activate.ps1 ``` 4. Upgrade pip and install dependencies: ```powershell python -m pip install --upgrade pip pip install -r requirements.txt ``` ## Run the server (oTree style) Use the project-level oTree command; Django `manage.py` is included but `otree` CLI is preferred for this setup. ```powershell # Activate venv (already active) .venv\Scripts\Activate.ps1 # Run oTree dev server on default port 8000 otree devserver --port 8000 --settings settings # Alternatively directly with shortcut command otree 8000 ``` Open: `http://127.0.0.1:8000/` ## Admin - Username: `admin` - Password: set `OTREE_ADMIN_PASSWORD` env var before launch (recommended) Example: ```powershell $env:OTREE_ADMIN_PASSWORD = "yourpassword" ``` ## Data / DB - Uses local `db.sqlite3` in project root. - Run migrations via oTree CLI or Django CLI: ```powershell otree resetdb ``` ## Sessions and rooms Defined in `settings.py`: - `SESSION_CONFIGS` includes session definitions, app sequences, participation fees, completion link. - `ROOMS` includes `Budget_AIhigh`, `Budget_Humanhigh`. ## Notes - `SESSION_CONFIG_DEFAULTS` sets currency and participation fee. - `SECRET_KEY` is hardcoded for dev; replace for production. - `INSTALLED_APPS = ['otree']` is minimal and correct for this project. ## Quick checks ```powershell python -m otree --help otree check ``` Enjoy running your experiment!