nCode Project Setup
You are setting up a new SaaS project using the nCode Golden Stack. Follow this exact structure - do not deviate.
Web Track (Next.js)
npx create-next-app@latest [project-name] --app --typescript --tailwind --eslint --src-dir --import-alias "@/*"
Then install in order:
npx shadcn@latest init- choose New York style, neutral colors
Note: shadcn default colors and radius are fine for now. They will be customized by DESIGN.md later when you run the design-director agent.
npm install @supabase/ssr @supabase/supabase-js- Supabase clientnpm install ai @ai-sdk/google- Vercel AI SDK + Gemininpm install posthog-js- Analyticsnpm install @sentry/nextjs- Error monitoring
Create these files:
.env.localfrom.env.example(create both)lib/supabase/client.ts+lib/supabase/server.tsmiddleware.tsfor auth session refreshapp/providers.tsxfor PostHog + other providers
Mobile Track (Expo)
npx create-expo-app@latest [project-name] --template tabs
Then install:
- NativeWind + Tailwind CSS setup
@react-native-firebase/app+ auth + firestoreexpo-router(already in template)react-native-purchases(RevenueCat)posthog-react-native
Both Tracks - Always Do
- Create
.gitignorewith node_modules, .next/.expo, .env*, .DS_Store - Create
.env.examplewith ALL required env vars as placeholders git init+ first commit: "feat: initial project setup with nCode Golden Stack"- Create
CLAUDE.mdwith project-specific conventions - Suggest: "Want to set up your design system? Run the design-director agent to create a DESIGN.md for your project."
Do NOT
- Do not use Pages Router (use App Router only)
- Do not install Prisma (use Supabase client directly)
- Do not use styled-components (use Tailwind/NativeWind)
- Do not create a monorepo structure unless explicitly asked