Getting Started
Choose Your Path
Welcome to The Architech! We offer two onboarding paths based on your goals:
π Path 1: Quick Demo (60 Seconds)
Perfect for: First-time users, learning the patterns, trying it out
Result: A simple Next.js app that demonstrates our architecture
Setup: Zero configuration required
πͺ Path 2: Production SaaS (10 Minutes)
Perfect for: Building a real product, getting all features
Result: Full-featured SaaS with auth, database, payments
Setup: Requires database connection, API keys
Quick Demo Path
Your First Project in 60 Seconds
Zero external dependencies. Zero configuration. Just see the architecture in action.
Prerequisites
- Node.js 18.x or later
- npm (or pnpm, yarn)
- A code editor
Step 1: Install The Architech CLI
Current Installation (until npm package is published):
# Clone the repository
git clone https://github.com/the-architech-xyz/cli.git
cd cli
# Install dependencies and build
npm install
npm run build
# Link globally
npm linkAfter Installation (npm package coming soon):
npm install -g @architech/cliStep 2: Generate the Hello World Project
architech new my-hello-world --genome hello-worldAlternative ways to choose a genome:
# Interactive picker (choose from list)
architech new my-hello-world
# List all genomes first
architech list-genomes
architech new my-hello-world --genome hello-world
# Use file path (for custom genomes)
architech new ./my-custom.genome.tsStep 3: Run It
cd my-hello-world
npm install
npm run devOpen http://localhost:3000 (opens in a new tab) β it just works!
What Just Happened?
The CLI generated:
- β Next.js 14 with TypeScript and Tailwind CSS
- β Shadcn/ui components (button, card, input, label)
- β A welcome page showing the architecture
- β ESLint and Prettier configured
- β Zero external dependencies (no database, no API keys needed)
Explore the code:
- Open
src/app/page.tsxβ See the clean Next.js structure - Check
src/components/ui/β Shadcn/ui components you own - Look at
package.jsonβ All dependencies explicit and up-to-date
What This Demonstrates
This minimal app shows you:
- The Architech's generation quality β Clean, readable, production-ready code
- The module system β Framework + UI + Quality tools working together
- Code ownership β Every file is yours to modify
Next: When you're ready for a real project β Jump to Production SaaS Path
Production App Path
Build a Production-Ready App in 5 Minutes
Get a database-ready foundation that you can extend with any features you need.
We recommend starting with the Standard App - it's the perfect balance of features and simplicity.
Prerequisites Checklist
Before starting, make sure you have:
Required:
- β Node.js 18.x or later
- β npm (or pnpm, yarn)
For Full Functionality (can skip initially):
- β οΈ PostgreSQL Database β We recommend Neon (opens in a new tab) (free tier available)
- You'll need a connection string:
postgresql://user:password@host:5432/database
- You'll need a connection string:
- β οΈ GitHub OAuth App (for authentication) β Create one here (opens in a new tab)
- You'll need: Client ID and Client Secret
- β οΈ Stripe Account (for payments) β Sign up here (opens in a new tab)
- You'll need: API Secret Key and Webhook Secret
Don't have these yet? The generation will work, but you'll need to configure them before the app runs. We'll show you exactly what to add.
Step 1: Install The Architech CLI
Current Installation (until npm package is published):
# Clone the repository
git clone https://github.com/the-architech-xyz/cli.git
cd cli
# Install dependencies and build
npm install
npm run build
# Link globally
npm linkAfter Installation (npm package coming soon):
npm install -g @architech/cliStep 2: Generate Your App
Recommended: Start with Standard App β
architech new my-app --genome standard-appThe CLI will generate:
- β Complete Next.js application with TypeScript
- β Golden Core (Zustand, Vitest, ESLint, Prettier, Zod)
- β Drizzle ORM with PostgreSQL
- β TanStack Query for data fetching
- β Infrastructure connectors (SSR hydration, forms)
- β Beautiful UI with shadcn/ui
- β Testing ready (Vitest)
- β Git initialized and deployment ready
All in production-ready code that you own.
Want more? You can easily add features later:
# Add authentication
architech add feature auth --provider better-auth
# Add payments
architech add feature payments --provider stripe
# Add teams
architech add feature teams-managementStep 3: Configure Environment Variables
The generation creates a .env.example file. Copy it and add your database:
cd my-app
cp .env.example .envEdit .env and add your database URL:
# Database (Required)
DATABASE_URL="postgresql://user:password@localhost:5432/mydb"Don't have a database? Get a free PostgreSQL database from Neon (opens in a new tab) in 30 seconds.
Step 4: Set Up the Database
Run the database migrations:
npm run db:pushThis creates all necessary tables in your PostgreSQL database.
Step 5: Launch Your SaaS
npm run devOpen http://localhost:3000 (opens in a new tab) β Your SaaS is live!
What You Now Have
- π Complete authentication β Sign up, sign in, password reset, OAuth
- π³ Payment processing β Stripe checkout, subscriptions, webhooks
- ποΈ Type-safe database β Drizzle ORM with PostgreSQL
- π₯ Team management β Multi-tenant architecture ready
- π§ Email system β Transactional emails configured
- π¨ Beautiful UI β shadcn/ui components, responsive design
- β Testing suite β Unit tests (Vitest) + E2E tests (Playwright)
- π Monitoring β Sentry integration for error tracking
All configured and working together. All code you own.
Verify It's Working
Test Authentication:
- Click "Sign Up" β create an account with email/password
- Check your terminal β see the auth flow working
- Open Drizzle Studio:
npm run db:studioβ see your user in the database
Test Payments (if Stripe is configured):
- Go to
/pricingβ see the subscription plans - Click "Subscribe" β Stripe checkout opens
- Use test card:
4242 4242 4242 4242
Explore the Code:
src/features/auth/β Complete authentication systemsrc/features/payments/β Full payment integrationsrc/lib/db/schema/β Your database schemassrc/hooks/β TanStack Query hooks for all data
Every file is readable. Every pattern is clear. This is code you own.
What's Next?
Now that you have a running application, you can:
Add New Features
Want to add a teams management feature?
architech add feature teams-management --ui shadcnNeed email capabilities?
architech add feature email --provider resendUnderstand the Architecture
Dive deep into our architectural doctrine to understand the Opinionated Core, Agnostic Edges philosophy:
π Read the Architecture Guide
Explore Module Types
Learn how The Architech's three-tier module system works:
- Architecture β β Understanding the module system
- Modules Catalog β β Browse all available modules
- Cookbook β β Practical recipes and patterns
Join the Community
Build your own adapters, connectors, and features:
π Contributing Guide
Available Genomes
All official genomes with their aliases:
| Genome | Complexity | Time | Description |
|---|---|---|---|
hello-world, minimal | π’ Simple | ~60 sec | Minimal Next.js starter |
blog, blog-starter | π‘ Intermediate | ~5 min | Modern blog with CMS |
saas, saas-starter, full-saas | π‘ Intermediate | ~10 min | Full SaaS platform |
ai-app, ai-chat, ai-powered | π‘ Intermediate | ~8 min | AI-powered application |
web3, dapp, blockchain | π΄ Advanced | ~12 min | Blockchain DApp |
showcase, ultimate, demo | π΄ Advanced | ~15 min | All features enabled |
Use any genome with:
# Shorthand (recommended)
architech new my-project --genome <genome-name>
# Interactive picker
architech new my-project
# List all with details
architech list-genomesWelcome to The Architech. You just got your time back.