Skip to content
FARREZ AL HAKIM
View

Back

FRZ-05

Distributor network dashboard architecture

A dashboard for distributors of a network marketing company, many of them older people on their phones. It plans the weekly repeat order: how much, where in the network, and when.

  1. A clock ticks every hour

    A Cloudflare Worker wakes the dashboard once an hour. That is its only job.

    • Cloudflare Workers
    • Scheduled job
  2. The dashboard picks who is due

    The dashboard works out which accounts are due and starts a data job for each.

    • Next.js
    • GitHub Actions
  3. Portal data is collected

    A headless browser signs in to the distributor portal and collects the data.

    • Playwright
  4. The repeat order plan is built

    The strategy engine builds the weekly plan and saves a snapshot.

    • Engine
    • PostgreSQL
  5. Distributors get a heads-up

    A daily reminder goes out by email and push notification. The details are read on the dashboard, on a phone.

    • Email
    • Push notifications

Technology

Features
  • Repeat order plan
  • Daily reminders
  • Phone-friendly dashboard
Stack
  • Next.js
  • TypeScript
  • PostgreSQL
  • Drizzle ORM
  • Playwright
  • Email
  • Push notifications
Infrastructure
  • Vercel
  • Cloudflare Workers
  • GitHub Actions
Ready to playGymnopédie No. 1 (Satie)Robin Alciatore, MusopenPublic domain

Everything, from piano to jazz, in turn.