No description
Find a file
bananabas 2f9e113374 fix: add COCOAPODS env vars and attempt CDN workarounds
- Added COCOAPODS_TRUNK_REPO_UPDATE_DISABLED to Podfile
- Attempted git-based specs repo (too slow on hotspot)
- Attempted HTTP fallback (not supported)
- Attempted CocoaPods monkey-patching

BLOCKER: CocoaPods CDN SSL handshake consistently fails with 'Connection reset'
This is a network-level issue, not fixable in code.

Next steps:
1. Try different network (corporate VPN, different ISP)
2. Ask CocoaPods team if CDN has SSL cert issues
3. Use EAS cloud build (requires Apple Developer Program signup)
4. Manually extract and link frameworks from a working build
2026-03-27 19:02:25 +00:00
.deployment i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
apps fix: add COCOAPODS env vars and attempt CDN workarounds 2026-03-27 19:02:25 +00:00
docs i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
packages/types i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
scripts i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
.eslintrc.json i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
.gitignore i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
.prettierrc.json i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
AGENTS.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
app.json fix: resolve React Native 0.76 + Expo 55 compatibility for old architecture 2026-03-27 17:24:57 +00:00
BUILD_INSTRUCTIONS.md docs: add iOS build instructions for Xcode 2026-03-27 17:44:37 +00:00
bun.lock feat: downgrade to Expo 54 + React Native 0.75 for stability 2026-03-27 17:44:18 +00:00
DEPLOYMENT_AUTOMATION.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
DEPLOYMENT_CHECKLIST.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
DEPLOYMENT_GUIDE.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
eas.json fix: resolve React Native 0.76 + Expo 55 compatibility for old architecture 2026-03-27 17:24:57 +00:00
package.json i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
QUICK_START.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
README.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
README_PRODUCTION.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
READY_TO_BUILD.md fix: resolve React Native 0.76 + Expo 55 compatibility for old architecture 2026-03-27 17:24:57 +00:00
RUBY_SSL_FIX.md fix: resolve React Native 0.76 + Expo 55 compatibility for old architecture 2026-03-27 17:24:57 +00:00
SETUP_COMPLETE.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
sst.config.ts i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
START_HERE.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
TESTING_LOCAL.md i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
tsconfig.json i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00
turbo.json i call bagsy on the initial commit 2026-03-27 17:05:28 +00:00

ShopList — Family Shopping List App

A full-stack monorepo for a family shopping list application built with Turborepo, Next.js, Expo, and TypeScript.

Quick Start

Prerequisites

  • bun 1.2.9+ (install here)
  • Node.js 20+ (for npm/npx tooling)
  • PostgreSQL 13+ (for database)

Setup

  1. Install dependencies

    bun install
    
  2. Configure environment

    cp apps/api/.env.example apps/api/.env.local
    cp apps/mobile/.env.example apps/mobile/.env
    
  3. Set up database (in apps/api/.env.local)

    DATABASE_URL=postgresql://user:password@localhost:5432/shoplist
    BETTER_AUTH_SECRET=$(openssl rand -base64 32)
    OPENROUTER_API_KEY=your-key-here
    
  4. Apply migrations

    cd apps/api
    bun run db:push
    

Development

Terminal 1 — Backend

cd apps/api
bun run dev  # Runs on http://localhost:3001

Terminal 2 — Mobile

cd apps/mobile
bun run dev  # Starts Expo, scan QR with Expo Go app

Terminal 3 — Monorepo commands

bun build      # Build all packages
bun lint       # Lint all packages
bun typecheck  # Type-check all packages
bun format     # Format all files

Project Structure

/
├── apps/
│   ├── api/              # Next.js 16 backend (API routes)
│   └── mobile/           # Expo 55 app (iOS + Android)
├── packages/
│   └── types/            # Shared TypeScript types
├── package.json          # Workspace root
├── turbo.json            # Turborepo config
├── tsconfig.json         # Shared TypeScript config
└── AGENTS.md             # AI implementation guide

Tech Stack

  • Monorepo: Turborepo + bun workspaces
  • Backend: Next.js 16 App Router
  • Database: PostgreSQL + Drizzle ORM
  • Auth: better-auth (email/password, passkey, organization)
  • Mobile: Expo 55 + Expo Router + Zustand
  • UI: Expo UI (SwiftUI on iOS, Jetpack Compose on Android)
  • AI: Vercel AI SDK + OpenRouter
  • Linting: ESLint + Prettier

Documentation

  • AGENTS.md — Complete implementation guide for AI agents and developers
  • Backend API endpoints: See AGENTS.md "Backend" section
  • Mobile screens: See AGENTS.md "Mobile App" section

Implementation Phases

  • ✅ Phase 1: Scaffold (monorepo, types, skeleton apps)
  • ⏳ Phase 2: Backend core (auth, database, API routes)
  • ⏳ Phase 3: Mobile auth & navigation
  • ⏳ Phase 4: Mobile UI screens
  • ⏳ Phase 5: Polish & testing

Key Files

File Purpose
packages/types/src/index.ts Shared types (User, Household, Store, Item, etc.)
apps/api/lib/auth.ts better-auth configuration
apps/api/db/schema.ts Drizzle ORM schema
apps/mobile/lib/auth-client.ts Expo auth client
apps/mobile/store/*.ts Zustand state stores

Environment Variables

Backend (apps/api/.env.local)

DATABASE_URL=postgresql://...
BETTER_AUTH_SECRET=<32-char key>
BETTER_AUTH_URL=http://localhost:3001
OPENROUTER_API_KEY=<your-api-key>
NEXT_PUBLIC_APP_URL=http://localhost:3001
NODE_ENV=development

Mobile (apps/mobile/.env)

EXPO_PUBLIC_API_URL=http://localhost:3001
NODE_ENV=development

Common Issues

TypeScript errors in node_modules (mobile)

  • These are library compatibility issues (Expo + React Native + better-auth)
  • Run bun typecheck --skipLibCheck to skip
  • Our application code is fully typed and strict

Port 3001 already in use

  • Change port in apps/api/package.json dev script or kill existing process

Database connection fails

  • Ensure PostgreSQL is running
  • Verify DATABASE_URL format: postgresql://user:password@host:port/database

Resources

License

MIT