Skip to content

sanity-labs/campaign-management-starter

Repository files navigation

Wander Retail Starter

Sanity-powered retail starter with a Wander brand storefront UI, product catalog schema, and seeded ecommerce sample data.

This starter now includes:

  • A real retail content model (product, category, brand, color, size, material)
  • A storefront UI modeled on Sanity's ai-shopping-assistant starter and re-skinned for Wander
  • Campaign orchestration schemas from the original PRD workstream

Included Workspaces

  • studio/ - Sanity Studio with retail + campaign schemas
  • apps/frontend/ - Next.js Wander storefront (/, /products, /products/[slug])
  • functions/ - Function scaffold for publish-time campaign automation
  • packages/ - Shared linting, tsconfig, and generated Sanity types

Retail Seed Data

The project is configured to use the ai-shopping-assistant seed archive:

  • studio/seed/data.tar.gz

Import (or re-import) into your development dataset:

pnpm --filter studio exec sanity dataset import seed/data.tar.gz development --replace

Quick Start

pnpm install
cp .env.example .env
pnpm run dev

Then open:

  • Storefront: http://localhost:3000
  • Studio: http://localhost:3333

Environment

Root .env:

  • SANITY_PROJECT_ID
  • SANITY_DATASET
  • SANITY_API_VERSION
  • SANITY_API_READ_TOKEN
  • SANITY_API_WRITE_TOKEN
  • SANITY_STUDIO_PROJECT_ID
  • SANITY_STUDIO_DATASET

Frontend .env.local (generated by bootstrap):

  • NEXT_PUBLIC_SANITY_PROJECT_ID
  • NEXT_PUBLIC_SANITY_DATASET
  • NEXT_PUBLIC_SANITY_API_VERSION

Validation

pnpm run format:check
pnpm run lint
pnpm run typecheck
pnpm run test
pnpm run validate

Notes

  • The retail UI and data model are adapted from Sanity's ai-shopping-assistant and studio/seed.
  • Campaign schemas and functions scaffold are still present for orchestration use cases.

About

Sanity use case starter for campaign management orchestration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages