Container ready on port 3000 with createusers.sh table schema ORDER BY RANDOM() LIMIT 5

Deal five random users on tap.

Press Shuffle five users to draw five rows from the users table.

Dealt 5 random rows from users
5 of 30 rows users table
  • #14
    Sarah Lopez slopez412
    Active
  • #03
    Thomas Nguyen tnguyen809
    Active
  • #27
    Emily Clark eclark264
    Active
  • #09
    Kenneth Lee klee551
    Quiet
  • #22
    Ashley Flores aflores738
    Active
SELECT * FROM users ORDER BY RANDOM() LIMIT 5;

From bash seeder to five cards.

One script populates thirty names; the container deals five at random.

1. createusers.sh 40 first and 40 last names INSERT 30 rows into users 2. Postgres users user_id, username, active ORDER BY RANDOM() LIMIT 5 3. Express dealer Serves five random rows GET /api/users/random
Thirty accounts
Initial, surname, and digits make slopez412.
Weighted flag
Eighty-five percent land active on seed.
Five per tap
Express returns five random rows.

Slice the deck before you draw.

Filter by all accounts, active profiles, or quiet rows.

Full table draw

Draws any five rows from thirty users.

GET /api/users/random?filter=all

Equal odds

One-in-six chance for every row.

ORDER BY RANDOM() LIMIT 5

Live re-deal

Send an unfiltered draw to the board.

Fresh hands on every press.

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.

Hands pulling a wooden squeegee across a red-inked silkscreen frame

Every draw runs a fresh query against the seeded table.

Static arrays beside a live table draw.

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

Build and deal 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
Coworking space with people at laptops by a big window and plants