Epic 1: Foundation & Infrastructure

Establish Makerkit base, database, and deployment pipeline for stable development

Epic 15 User Stories

Foundation & Infrastructure

Establish Makerkit base, database, and deployment pipeline for stable development

User Stories

Story 1.1

Initialize Makerkit Project

Set up the Makerkit Turbo project with correct configuration for Next.js 15, Supabase, and shadcn/ui.

Acceptance Criteria
  • Next.js dev server runs without errors
  • Supabase connection established
  • TypeScript compiles without errors
  • Tailwind CSS configured with brand theme
Story 1.2

Configure Custom Database Schema

Create all custom database tables, RLS policies, and functions for the application.

Acceptance Criteria
  • brand_assets, media_images, generation_jobs tables created
  • RLS policies enforce tenant isolation
  • Full-text search index on media_images
  • Credit management functions created
Story 1.3

Configure AI Provider Integration

Set up Google Gemini API and OpenRouter as AI providers for image generation and chat.

Acceptance Criteria
  • Gemini Imagen 4 generates images successfully
  • Gemini 2.5 Flash responds to chat prompts
  • Provider abstraction allows switching
  • Rate limiting and retry logic implemented
Story 1.4

Configure Supabase Storage

Set up storage buckets for brand assets, generated images, and thumbnails with CDN.

Acceptance Criteria
  • brand-assets, generated-images, thumbnails buckets created
  • RLS policies restrict access by tenant
  • Image transformations enabled
  • CDN caching configured
Story 1.5

Configure Deployment Pipeline

Set up CI/CD with Vercel for staging and production deployments.

Acceptance Criteria
  • CI runs TypeScript check, ESLint, and tests
  • Preview deployments for PRs
  • Auto-deploy to staging on main branch
  • Sentry error tracking connected

Want to see foundation & infrastructure in action?

Book a demo to see how imAgend can transform your association's visual content creation.

Request a Demo