start
Clone the monorepo and bring up a reproducible local environment.
Install and bootstrap
BlackStory is a TypeScript and Python monorepo. Local development does not require cloud credentials. If you want the product story first, start with Why BlackStory.
Prerequisites
- Node.js 22+ (
nvm usefrom.nvmrc) - pnpm 9.x
- uv (Python 3.12+)
- Docker for isolated local Supabase database and migration checks
Bootstrap
git clone https://github.com/geraldmaron/blackstory.git
cd blackstory
./scripts/bootstrap.sh
# or
pnpm bootstrap
Copy .env.example
for documented local configuration. Do not put production secrets in the
working tree.
Validate
pnpm validate
pnpm test:preflight
pnpm test
Build and typecheck (APIs consume built package declarations):
pnpm build && pnpm typecheck
Run the public web app
pnpm dev:web
# http://localhost:3048/
# http://localhost:3048/explore
Live catalog pages require Postgres and a released catalog. Configure PUBLIC_DATA_SOURCE=postgres
and a local DATABASE_URL; they do not silently fall back to sample records. Editorial pages
such as /about and /methodology can render without a database.
This docs site
pnpm --filter @repo/docs dev
# http://localhost:3050/
Production-shaped static export for GitHub Pages:
DOCS_BASE_PATH=/blackstory pnpm --filter @repo/docs build
# or from the monorepo root:
pnpm docs:publish