Getting Started with Craft
Learn how to set up your Craft template in less than 10 minutes. Full-stack boilerplate with Next.js 15, tRPC, Prisma, TanStack Query, Zustand, and more.
Prerequisites
Before you begin, make sure you have:
- Node.js 20+ installed
- pnpm package manager (
npm install -g pnpm) - Git for version control
- A code editor (VS Code recommended)
1. Purchase & Download Template
Choose your template from the pricing page:
Available Templates:
โข ๐ Rapid Web ($99) - Ship in 2 days, 1-2 devs
โข โ๏ธ Balanced Web ($109) - Production-ready, 3-10 devs
โข ๐ Crafted Web ($119) - Enterprise-grade, 10+ devs
โข ๐ Rapid Web + Mobile ($124) - Fast MVP with mobile app
โข โ๏ธ Balanced Web + Mobile ($139) - Production with mobile
โข ๐ Crafted Web + Mobile ($149) - Enterprise with mobile
After purchase, you'll receive:
- โ Instant download link via email
- โ ZIP file with complete template
- โ Installation guide (README.md)
- โ Environment variable examples
2. Extract Template
# Unzip the downloaded templateunzip rapid-web.zip -d my-saas# Navigate to your projectcd my-saas3. Install Dependencies
# Install all dependenciespnpm install๐ก Pro Tip: This will install all packages for the entire monorepo. Takes ~2-3 minutes.
MCP Servers Auto-Configuration
During pnpm install, 13 MCP servers are automatically configured for Claude Code integration. This happens via a postinstall script that runs claude mcp add commands.
โ Auto-configured (11 servers):
crafted-context, crafted-cli, rules-validator, architecture-guard, typescript, vitest, filesystem, github, sequential-thinking, shadcn, chrome-devtools
โ๏ธ Requires manual setup (2 servers):
- git - Needs
git init+ first commit - supabase - Needs credentials in
.env.local
๐ See the included MCP-SETUP.md file in your template for detailed setup instructions.
4. Environment Setup
Copy the example environment file and configure your variables:
cp apps/web/.env.example apps/web/.env.localKey environment variables you need to set:
- DATABASE_URL - Your PostgreSQL connection string (Supabase)
- NEXT_PUBLIC_SUPABASE_URL - Supabase project URL
- NEXT_PUBLIC_SUPABASE_ANON_KEY - Supabase anonymous key
- STRIPE_SECRET_KEY - Stripe secret key (for payments)
- NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY - Stripe publishable key
- RESEND_API_KEY - Resend API key (for emails)
5. Database Setup
# Generate Prisma clientpnpm db:generate# Push schema to databasepnpm db:push# (Optional) Seed database with sample datapnpm db:seed6. Start Development Server
# Start all apps in development modepnpm dev# Or start specific apppnpm dev --filter=webYour app will be running at http://localhost:3000
Project Structure
Your Craft project has the following structure:
my-saas/ โโโ apps/ โ โโโ web/ # Next.js application โ โโโ src/ โ โ โโโ app/ # App Router pages โ โ โโโ trpc/ # tRPC client setup โ โโโ package.json โโโ packages/ โ โโโ api/ # tRPC routers โ โโโ database/ # Prisma schema & client โ โโโ ui/ # Shared UI components โ โโโ validators/ # Zod schemas โโโ .claude/ โ โโโ agents/ # 8 AI agents โ โโโ skills/ # 10 Official Skills โ โโโ mcp-servers/ # 14 MCP servers โโโ package.json โโโ turbo.json # Turborepo config
7. Start Building with Claude Code ๐ค
This is where the magic happens! Open Claude Code and start shipping features instantly.
โจ Your AI-Powered Development Workflow
Open Claude Code in your project directory:
Then type /features to see all available AI Skills!
Pro Tip: Just Describe What You Want!
Instead of coding manually, describe your feature in plain English. Claude will generate production-ready code that matches your quality level, with tests and validation.
Example prompts to try:
"Add user profile management with avatar upload"
"Create a blog with categories, tags, and comments"
"Build a subscription plan selector with Stripe checkout"
โจ Included AI Skills (16 Total):
- โข
/rapidShip fast mode (MVP validation) - โข
/balancedPragmatic quality (startups) - โข
/craftedEnterprise-grade (scale)
- โข
/featureAdd new feature - โข
/bugfixFix bugs - โข
/refactorImprove code - โข
/securitySecurity audit
- โข
/architectDesign architecture - โข
/developerGenerate code - โข
/testerWrite tests - โข+ 3 more agents...
- โข
/validateQuality check - โข
/guardArchitecture guard - โข
/coverageTest coverage
๐ก How to use: Type /features "your feature description" in Claude Code. The orchestrator will automatically call the agent skills in the right order (architect โ developer โ tester โ reviewer).
๐ Example: Build a Feature in 2 Minutes
Command:
/features "Add subscription management with upgrade/downgrade flows"
๐ฏ Detected: Balanced level (auto)
๐๏ธ architect: Designing 3-layer architecture...
๐จโ๐ป developer: Router + Service + Repository...
๐งช tester: Unit + integration tests (73%)...
โ validator: SOLID โ | guard: Architecture โ
โ Production-ready in 2m 14s!
5 files created, 18 tests passing, architecture validated. Ready to deploy!
Learn more in the AI Skills documentation โ
Next Steps
๐ก Pro Tip
Start with the Rapid quality level to validate your idea quickly. You can seamlessly upgrade to Balanced or Crafted as your product grows.
๐ง Need Help?
Email us at contact@getcraft.dev and we'll help you get set up.