A Dart CLI that logs scholarship verification checks (identity, residency, income, enrollment) into Postgres and provides filtered views and summaries for operations.
- Add verification checks with consistent fields and timestamps
- Filter and list recent checks by status, type, or scholar
- Summarize verification volume by status or check type
- Production-ready Postgres schema and seed data
- Dart 3.10
postgresdriver- Postgres (shared Group Scholar cluster, schema
gsvl)
Install dependencies:
dart pub getConfigure environment variables (do not commit real secrets):
export PGHOST=db-acupinir.groupscholar.com
export PGPORT=23947
export PGDATABASE=postgres
export PGUSER=ralph
export PGPASSWORD=your_password_here
export PGSSLMODE=disableInitialize schema + seed data in production:
psql "postgresql://$PGUSER:$PGPASSWORD@$PGHOST:$PGPORT/$PGDATABASE?sslmode=$PGSSLMODE" \
-f sql/schema.sql
psql "postgresql://$PGUSER:$PGPASSWORD@$PGHOST:$PGPORT/$PGDATABASE?sslmode=$PGSSLMODE" \
-f sql/seed.sqlAdd a verification check:
dart run bin/groupscholar_verification_logbook.dart add \
--scholar "Avery Johnson" \
--scholar-id "GS-102" \
--type "Residency" \
--status "verified" \
--by "Ralph" \
--notes "Lease + utility bill received"List recent checks:
dart run bin/groupscholar_verification_logbook.dart list --limit 10 --status verifiedSummary for the last 60 days:
dart run bin/groupscholar_verification_logbook.dart summary --window 60dart test