life-my--midst--in

Infrastructure

Infrastructure-as-code and deployment configuration:

Migrations & Seeds

Environments

Keep dev/test/integration databases distinct (e.g., midst_dev, midst_test, midst_integration). Seeds are idempotent (ON CONFLICT DO NOTHING).

Load Testing

Performance testing is done with k6. See k6/README.md for detailed instructions.

Quick start:

# Install k6 (macOS)
brew install k6

# Run smoke test (quick validation)
k6 run infra/k6/scenarios/smoke.js

# Run baseline test (normal load)
k6 run infra/k6/scenarios/baseline.js

# Run stress test (find breaking point)
k6 run --env SCENARIO=stress infra/k6/scenarios/baseline.js

Monitoring

Grafana dashboards are in grafana/dashboards/:

Import dashboards via Grafana UI or use the provisioning files in grafana/provisioning/.