Built in public · Case study

Safe Pickup — a school gate safety system

Staff check every collector against an approved list with photos. Parents just get a text, with no app and no account. Built serverless on AWS and piloting at a nursery school in Jos, Nigeria.

What it is, and what it's for

Safe Pickup is a school pickup safety system. The school runs it; parents and collectors never install an app or create an account. Staff check each collector against a list of approved adults, with photos, on a phone or tablet at the gate or classroom. Parents get a text when their child is collected.

The pilot is Peakfield Academy in Jos, Nigeria (nursery section). The dev environment runs at dev.safepickup.ddsapps.click.

How a pickup works

Parents register approved collectors on a signed school form with name, phone, passport photo and ID copy; the office enters it. At pickup, staff ask the adult's name — never suggest one — and compare the photo and ID.

The stack at a glance

Serverless, multi-tenant, no VPC

CloudFront + S3

A React + Vite PWA served from a private S3 bucket. /api/* forwards to API Gateway from the same distribution.

  • PWA
  • OAC
  • TypeScript

FastAPI on Lambda

FastAPI + Mangum on arm64 Lambda behind an HTTP API, with Cognito JWTs for staff. API types are generated from the OpenAPI schema and CI fails if they go stale.

  • Python 3.12
  • Pydantic v2
  • Cognito

Aurora Serverless v2

PostgreSQL 16 reached over the RDS Data API, so no VPC or NAT. Min capacity auto-pauses to keep a pilot at roughly $6–16 a month plus SMS.

  • Postgres
  • Data API
  • Auto-pause

SQS + SMS

Parent notifications go through an SQS queue with a DLQ and a worker. Alarms feed SNS and Slack.

  • SQS
  • DLQ
  • Twilio

Multi-tenancy enforced in the database

One deployment serves every school. Each tenant row carries school_id, and isolation is enforced by Postgres row-level security (ENABLE + FORCE), not just application code. The API connects as a non-owner role without BYPASSRLS, and an unset tenant fails closed with zero rows.

The school and role come from the database on every request, never from JWT claims, so deactivating a user takes effect immediately. The audit log is append-only for the app role, photos are private behind presigned URLs and never sent by SMS, and codes are stored hashed. Photos are collected with consent under the Nigeria Data Protection Act.

Delivery

Everything is Terraform, with code shipped through the same pipeline. GitHub Actions authenticates over OIDC, runs lint, type checks and tests (including cross-school RLS tests as the non-owner role), applies to dev on merge and smoke-tests /api/health. The shared ddsapps.click domain is registered in this website's Terraform baseline.

Want something like this?

Safety workflows for real-world operations

Multi-tenant, audit-logged, low-cost to run and usable by non-technical staff on a phone. Talk to us about scoping something similar.