westfarn dd37a2a268
Deploy Beta / docker (push) Successful in 37s
Deploy Beta / deploy-beta (push) Successful in 2m21s
Deploy Beta / unit-tests (push) Successful in 39s
Customer accounts, order tracking, and purchase reviews (#8)
## Summary
- Slim the public contact form to email, interest, and message. Name, phone, and address live on the customer profile instead.
- Customers can register, sign in, save shipping details, and view order history. Logged-in checkout creates a Stripe Customer and saves cards on Stripe (`setup_future_usage`); we only store `stripe_customer_id`.
- Shipment tracking: EasyPost tracker lookup + webhook, plus paste-in numbers from Pirate Ship/Shippo. Customers see carrier status on their orders; `dispatch_due` refreshes open shipments.
- Product reviews (1–5) only after a paid/fulfilled purchase of that product.

Fixes #7

## Test plan
- [ ] Contact form submits with only email + message; extra name/phone/address fields are ignored
- [ ] Register, sign in, save profile (name/phone/shipping)
- [ ] Guest checkout still works; after signup, prior orders with that email show in history
- [ ] Logged-in checkout prefills shipping and does not collect card data locally
- [ ] Portal: buy label or paste a Pirate Ship tracking number, confirm status/events; customer order page shows tracking
- [ ] Product page: non-buyers cannot review; buyers can leave one 1–5 star review
- [ ] Non-staff users hitting `/portal/` redirect to `/account/`

Reviewed-on: #8
2026-09-07 04:53:41 -07:00
2026-09-06 04:27:41 -07:00
2026-09-06 04:27:41 -07:00

Print Forge

3D printed toy shop for Print Forge (Web Design & Hosting).

Public site + client portal, plus purchased catalog add-ons: email & SMS, payments, e-commerce, and shipping automation.

Catalog

Catalog item Flag App
Public site (always on) public
Client portal + UTM (always on) accounts, dashboard, leads, analytics, contacts, core
Email & SMS FEATURE_EMAIL_SMS email_sms
Payments (Stripe) FEATURE_PAYMENTS payments
E-commerce storefront FEATURE_SHOP shop
Shipping automation FEATURE_SHIPPING shipping

Off for this client: direct mail, blog, social, social AI, POS sync, event ticketing.

Contact

Local

cp .env.example .env
uv sync
cd site
uv run python manage.py migrate
uv run python manage.py runserver
# or: docker compose up

Deploy

mkdir -p ~/Documents/secrets/print_forge
cp .env.prod.example ~/Documents/secrets/print_forge/print_forge_prod.env
# Fill Stripe, SMTP2GO, shortener, and DB secrets.
./scripts/validate-env.sh ~/Documents/secrets/print_forge/print_forge_prod.env

Infra: Postgres on 10.0.0.230, server-infra app_catalog.print_forge, NPM, CI. Gitea deploy calls deploy.sh --app print_forge (must match that catalog key). Secrets: ~/Documents/secrets/print_forge/print_forge_{prod,beta}.env. Create a portal user with createsuperuser after first deploy.

Stack

Django 6 + uv · Postgres (prod/beta); SQLite locally · dj-queue · Docker · server-infra Ansible deploy.

S
Description
No description provided
Readme
19 MiB
Languages
Python 42%
CSS 37.6%
HTML 14.5%
JavaScript 5.4%
Shell 0.5%