Skip to main content

Prerequisites

  • Node.js 18+
  • pnpm (npm install -g pnpm)
  • Supabase CLI (npm install -g supabase)
  • Access to the GitHub repo

Clone and Install

git clone https://github.com/trendingsociety/trendingsociety.git
cd trendingsociety
pnpm install

Environment Setup

Copy the example environment file:
cp .env.example .env.local
Required variables:
# Supabase
NEXT_PUBLIC_SUPABASE_URL=https://ymdccxqzmhxgbjbppywf.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_key

# Shopify (for Store)
SHOPIFY_STORE_DOMAIN=y0nrcb-2y.myshopify.com
SHOPIFY_ACCESS_TOKEN=your_token

Run Development Server

# Run all apps
pnpm dev

# Or run specific app
pnpm dev --filter=publisher
pnpm dev --filter=dashboard

Project Structure

trendingsociety/
├── apps/
│   ├── publisher/     # Blog network
│   ├── platform/      # Creator tools
│   ├── agency/        # Client services
│   ├── dashboard/     # Main dashboard
├── services/
│   └── mcp/           # MCP Server (Cloudflare Workers)
├── packages/
│   ├── db/            # Supabase client + types
│   ├── ui/            # Shared components
│   └── content-engine/ # Content generation
└── database/
    └── migrations/    # SQL migrations

Next Steps