Remote Court Log (Flat-Pack) v0.1
================================

This is a database-free local record-keeping kit for "remote hearing rooms".
It stores each session as a folder of JSON files + optional attachments. You can back up by zipping the "sessions/" folder.

What this is:
- Operational logs: check-in, room checklist, incidents, exports.
What this is NOT:
- A replacement for official court records.

Quick Start (Works on Windows or Linux)
--------------------------------------
Option A: PHP built-in server (fastest)
1) Install PHP 8.x (or 7.4+).
2) Open a terminal in the "app/" folder.
3) Run:
     php -S localhost:8080
4) Open:
     http://localhost:8080

Option B: Apache + PHP
- Copy the whole folder to your web root and point Apache to the "app/" directory.
- Ensure "sessions/", "audit/", and "indexes/" are writable by the web server.

Default Login
-------------
User: admin
Password: change-me-now

IMPORTANT: Change the password immediately.
- Open config/auth.json
- Replace "password_sha256" with a new hash using the included tool:
    app/tools/make_password_hash.php

Folder Layout
-------------
sessions/   -> One folder per session (primary records)
indexes/    -> Searchable index files (CSV + NDJSON)
audit/      -> Append-only audit log (NDJSON) + daily hash chain
config/     -> Field templates and checklists
app/        -> Local web UI (PHP) that writes flat files

Backups
-------
- Zip "sessions/" (and optionally "audit/" + "indexes/") on a schedule.
- Store backups in at least 2 places.

Upgrades
--------
Because this is JSON, a future v2 can import all old sessions without needing SQL dumps.


v0.2 Updates:
- Attachment uploads per session
- Printable HTML Session Summary
