df92e3f94c
ci / check (push) Has been cancelled
Pivot ecomm from a generic multi-tenant Shopify-alternative storefront to the commitment-commerce + cross-maker verified referral NETWORK direction (ecomm-content/rfcs/network_strategy.md; OHM identity/relationality super-drafts). Phase A of the reset — clear the decks: - Strip the storefront surfaces with no carry-forward: the storefronts domain, the products import/export/image HTTP spine (service/imagefetch/repo + endpoints), the SPA frontend, and the Playwright e2e suite. - Keep the reusable core: /healthz + /api/auth/* (accounts); the catalog-normalization library (codec/dialect/models/serialize/validate/diff/hosted — importable, no HTTP yet); platform/* infra. Migrations untouched (append-only). - Reduce check.sh to backend-only (import-linter + pytest); trim dev.sh and the unused GCS overlay env. Repoint app.json/README/CLAUDE.md; bump VERSION 0.8.0 -> 0.9.0. check.sh green: import-linter (main > domains > platform) KEPT, pytest passing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
1.4 KiB
Bash
Executable File
32 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Local bring-up for the ecomm network-service seed (SD-0001 PUC-10). From a clean
|
|
# checkout this:
|
|
# 1. starts the dev Postgres container and waits for it to be healthy (owns its
|
|
# lifecycle — Docker is the one prerequisite, docs/BOOTSTRAP.md);
|
|
# 2. ensures the backend venv + deps;
|
|
# 3. runs the FastAPI backend (:8000, self-migrating an empty DB).
|
|
# Ctrl-C stops the backend; the container keeps running (stop it with
|
|
# `docker compose down`, or `docker compose down -v` to reset to empty).
|
|
# The storefront SPA was removed in the network-seed reset — there is no frontend dev
|
|
# server yet (the network admin UI is a future build).
|
|
set -euo pipefail
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$repo_root"
|
|
|
|
export ECOMM_DATABASE_URL="${ECOMM_DATABASE_URL:-postgresql://ecomm:ecomm@localhost:5432/ecomm}"
|
|
|
|
echo "==> dev Postgres (docker compose up --wait)"
|
|
docker compose up -d --wait db
|
|
|
|
if [ ! -x "$repo_root/.venv/bin/python" ]; then
|
|
echo "==> creating backend venv"
|
|
python3 -m venv "$repo_root/.venv"
|
|
"$repo_root/.venv/bin/python" -m pip install --upgrade pip
|
|
"$repo_root/.venv/bin/python" -m pip install -r "$repo_root/backend/requirements.txt"
|
|
fi
|
|
|
|
echo "==> starting backend (:8000) — Ctrl-C to stop"
|
|
# exec hands the terminal (and Ctrl-C) straight to uvicorn; no child-process juggling.
|
|
exec "$repo_root/.venv/bin/python" -m uvicorn app.main:app --app-dir "$repo_root/backend" --port 8000 --reload
|