Stage 3 · Ideation

PhoneBazaar: Product Requirements (PRD)

PhoneBazaar · Android phones store · generated by the AiNa pipeline

Stage 3 of the AiNa pipeline · 2026-11-30 · inputs: 01 Braindoc, 02 SOW

Name

PhoneBazaar Android Store

Elevator pitch

PhoneBazaar is a small online shop that sells only Android phones, built around fast spec filters and side-by-side compare. It is for UK shoppers choosing their next phone and for a single seller who wants a clean store without a platform subscription.

Chosen variant

tier_lean

Tech stack (one-line)

FastAPI 0.115 (Python 3.12) · Jinja2 + HTMX, AiNa design system · SQLite (seeded at startup, /tmp on Vercel) · Vercel serverless at phonebazaar.tehchand.com

Domain architecture

Three bounded areas inside one FastAPI app:

Area Responsibility Pages
Storefront Catalog, search, filters, detail, compare /, /phones, /phones/{slug}, /compare
Ordering Session cart, demo checkout, order records /cart, /checkout, /orders/{number}
Back office Admin login, phone CRUD, stock, orders /admin/*

Cross-cutting: /docs (pipeline documents), /roadmap, /healthz.

Layout decision. The storefront gets a shopper-facing top-bar layout (store_base.html); the admin keeps the starter's sidebar shell (base.html). Both use the same app.css tokens and component classes, so there is still one design system. The accent colour is overridden to Android green (--accent: #0f9d58).

Features

Data model summary

Entity Purpose Key fields
Phone A sellable Android model id, slug, brand, model, price_pence, ram_gb, storage_gb, screen_in, refresh_hz, chipset, camera_mp, battery_mah, android_ver, is_5g, release_year, colour, stock, active, blurb
Order A demo order id, number (PB-XXXXXX), name, email, address, postcode, total_pence, status (new/shipped), created_at
OrderItem Line on an order id, order_id, phone_id, model_snapshot, unit_pence, qty
Session (cookie) Cart and compare tray, admin flag cart: {phone_id: qty}, compare: [id,…], admin: bool

Money is stored as integer pence; formatting to £1,299.00 happens in a Jinja filter.

API contract summary

Server-rendered HTML routes; HTMX endpoints return partials.

UX composition

NFR highlights

Open questions

What's NOT in V1 (deliberate)