This repo contains:
api/PHP REST API (Slim)ws/Bun + ws realtime gatewayweb/React testing UIdb/MySQL schemascripts/GC worker for attachments
- Start MySQL/Redis/MinIO:
docker compose up -d- Install dependencies:
cd api && composer install
cd ../ws && bun install
cd ../web && npm install- Copy env files:
cp api/.env.example api/.env
cp ws/.env.example ws/.env
cp web/.env.example web/.env- Run all services with pm2:
pm2 start pm2.config.cjs
pm2 logs- API: http://localhost:8080
- WS: ws://localhost:8787
- Web UI: http://localhost:5173
- Email verification is skipped by default:
SKIP_EMAIL_VERIFICATION=true. - Turnstile is still required on register/login. Use
dev-passfor local bypass. - Attachments are stored locally in
api/storage. - Run GC for expired attachments:
php scripts/gc_attachments.php