Full table draw
Draws any five rows from thirty users.
GET /api/users/random?filter=all
Press Shuffle five users to draw five rows from the users table.
SELECT * FROM users ORDER BY RANDOM() LIMIT 5;
One script populates thirty names; the container deals five at random.
slopez412.Filter by all accounts, active profiles, or quiet rows.
Draws any five rows from thirty users.
GET /api/users/random?filter=all
One-in-six chance for every row.
ORDER BY RANDOM() LIMIT 5
Send an unfiltered draw to the board.
Filters for rows where the seeded coin landed active.
WHERE active = TRUE
Every card dealt in this slice carries an active badge.
GET /api/users/random?filter=active
Send this filter straight to the top dealer board.
Isolates rows seeded with active = FALSE.
WHERE active = FALSE
Shows dormant accounts inside the Postgres table.
GET /api/users/random?filter=inactive
Inspect five inactive accounts on the hero board.
Like pulling a print by hand, every call deals a new five-row combination.
The seeder mixes forty given names with forty surnames and stamps a three-digit handle.
Every draw runs a fresh query against the seeded table.
How the containerized dealer compares with fixed demo mocks.
| Layer | Fixed mock file | ShuffleDeck container |
|---|---|---|
| Origin | Five static objects in script | Thirty rows via createusers.sh |
| Handles | Repeated sample strings | Initial, surname, three digits |
| Query | Same five records every load | ORDER BY RANDOM() LIMIT 5 |
| Status | Manual boolean flags | 85% active, 15% quiet rows |
| Runtime | Local script only | node:20-alpine on port 3000 |
Run the container locally or point DATABASE_URL at your Postgres instance.
docker build -t shuffledeck-users .
docker run -p 3000:3000 shuffledeck-users