Getting Started with AICodeRally
Your complete guide to setting up and building with the AICodeRally platform.
What is AICodeRally?
AICodeRally is an AI-native platform built on a 4-layer architecture:
- Modules – Internal capability library (donors, grants, pipeline, etc.)
- Ideation Studio – Turn one idea into one app (web, mobile, or website)
- Edge Portal – Business operations around your apps (CRM, billing, dashboards)
- Summit Solutions – Custom, cross-business enterprise orchestration
Learn More:
- Application Architecture - 4-layer app structure
- Unified System Architecture - Complete ecosystem (Rally Stack + Rally AI + Agent Protocol)
- Rally AI - Multi-AI orchestrator for architecture and design
- Agent Protocol - AI agent coordination workflow
Prerequisites
Before you begin, ensure you have:
- Node.js 18+ installed
- pnpm package manager (
npm install -g pnpm) - Git for version control
- Code editor (VS Code recommended)
- GitHub account with access to AICodeRally organization
Initial Setup
1. Clone the Repository
# Clone the monorepo
git clone https://github.com/AICodeRally/aicoderally-stack.git
cd aicoderally-stack
2. Install Dependencies
# Install all packages (uses pnpm workspaces)
pnpm install
This installs dependencies for:
- All apps (studio, edge, summit, website, docs)
- All packages (modules, core, UI, connectors)
- All tools (rally-ai, validation scripts)
3. Set Up Environment Variables
Create .env.local files for each app:
Studio App (apps/studio/.env.local):
# Database (Prisma Postgres via Vercel)
DATABASE_URL="prisma+postgres://accelerate.prisma-data.net/?api_key=YOUR_KEY"
DIRECT_URL="postgres://...@db.prisma.io:5432/postgres?sslmode=require"
# NextAuth
NEXTAUTH_SECRET="your-secret-here-min-32-chars"
NEXTAUTH_URL="http://localhost:3000"
# AI (Optional)
ANTHROPIC_API_KEY="sk-ant-..."
OPENAI_API_KEY="sk-..."
See Deployment Guide for complete environment variable setup.
4. Set Up Database
cd apps/studio
# Generate Prisma client
npx prisma generate
# Push schema to database
npx prisma db push
# Seed initial data
npx prisma db seed
See Database Setup Guide for details.
5. Start Development Server
# From monorepo root - Start Studio
pnpm --filter studio dev
# Or from studio directory
cd apps/studio
pnpm dev
Visit http://localhost:3000 to see your app running!
Development Workflow
Running Different Apps
# Studio (main platform)
pnpm --filter studio dev
# Edge (SMB tier)
pnpm --filter edge dev
# Summit (Enterprise tier)
pnpm --filter summit dev
# Website (marketing)
pnpm --filter website dev
# Docs (documentation site)
pnpm --filter docs dev
Building for Production
# Build specific app
pnpm --filter studio build
# Build all apps
pnpm build
# Type check
pnpm typecheck
Understanding the Nomenclature System
AICodeRally uses a unique module naming system:
- Company Type: What KIND of organization (nonprofit, consulting, etc.)
- Domain: What INDUSTRY they serve (healthcare, education, etc.)
- Category: What the module DOES (CRM, analytics, etc.)
Example: nonprofit-beneficiary-crm
- Company Type: nonprofit
- Domain: beneficiary
- Category: crm
See Nomenclature System Guide for complete details.
Creating Your First Module
1. Define Module Metadata
Create packages/modules/my-module/index.ts:
import { RallyModule } from "@rally/core";
export const module: RallyModule = {
meta: {
id: "my-module",
name: "My Module Name",
description: "What this module does",
version: "1.0.0",
category: "generic",
route: "/modules/my-module",
tier: "studio", // or "edge", "summit"
},
};
2. Create UI Page
Create apps/studio/app/modules/my-module/page.tsx:
export default function MyModulePage() {
return (
<div className="mx-auto max-w-4xl p-8">
<h1 className="text-3xl font-bold mb-4">My Module</h1>
<p className="text-gray-600">
Module UI goes here
</p>
</div>
);
}
3. Register Module
Add to packages/modules/index.ts:
export * from "./my-module";
4. View Your Module
Visit: http://localhost:3000/modules/my-module
Key Concepts
Monorepo Structure
aicoderally-stack/
├── apps/
│ ├── studio/ # Studio tier (community, youth, creators)
│ ├── edge/ # Edge tier (SMB transformation)
│ ├── summit/ # Summit tier (enterprise)
│ ├── website/ # Marketing site
│ └── docs/ # Documentation site
├── packages/
│ ├── modules/ # All feature modules
│ ├── core/ # TypeScript types and contracts
│ ├── ui/ # Shared UI components
│ └── connectors/ # Database, email, AI connectors
└── tools/
├── rally-ai/ # Multi-AI orchestration CLI
└── scripts/ # Validation and setup scripts
Platform Architecture
Layer 1: Modules - packages/modules/*
- Shared capability library (internal only)
- 86+ reusable modules
- Used by all layers above
Layer 2: Ideation Studio - apps/studio → studio.aicoderally.com
- One idea → one app
- Web, mobile, or website
- Focus on UX and value, not operations
Layer 3: Edge Portal - apps/edge → edge.aicoderally.com
- Business OS around your apps
- CRM, billing, operations, dashboards
- Vertical solutions (nonprofit, consulting, creative studios)
Layer 4: Summit Solutions - apps/summit → summit.aicoderally.com
- Custom, cross-business orchestration
- Enterprise governance and analytics
- Multi-entity workflows
Tech Stack
- Framework: Next.js 15 with App Router
- Language: TypeScript 5
- Database: Prisma Postgres (via Vercel)
- Styling: Tailwind CSS 3.4
- Deployment: Vercel
- AI: Anthropic Claude (Sonnet 4.5)
See Tech Stack Overview for complete details.
Next Steps
- Explore Existing Modules - Browse
packages/modules/to see patterns - Read Module Tracker - See all 19 Edge modules in Master Module Tracker
- Set Up Database - Complete Database Setup
- Learn Deployment - Read Deployment Guide
- Join Development - See Contributing Guide
Common Commands
# Development
pnpm dev # Start all apps
pnpm --filter studio dev # Start Studio only
pnpm --filter edge dev # Start Edge only
# Building
pnpm build # Build all apps
pnpm --filter studio build # Build Studio only
# Type Checking
pnpm typecheck # Check all TypeScript
# Database
npx prisma generate # Generate Prisma client
npx prisma db push # Push schema changes
npx prisma studio # Open database GUI
# Multi-AI Tools
pnpm rally-ai design <feature> # AI-powered feature design
pnpm rally-ai sprint-plan # Generate sprint plan
pnpm rally-ai validate # Validate before deployment
Troubleshooting
"Module not found" errors
# Regenerate Prisma client
npx prisma generate
# Reinstall dependencies
rm -rf node_modules
pnpm install
Database connection issues
# Verify environment variables
cat apps/studio/.env.local | grep DATABASE_URL
# Test database connection
npx prisma db execute --stdin <<< "SELECT 1"
Build failures
# Clear Next.js cache
rm -rf apps/studio/.next
# Clear Turbo cache
rm -rf node_modules/.cache
# Rebuild
pnpm build
Resources
- Documentation: docs.aicoderally.com
- Studio: studio.aicoderally.com
- Edge: edge.aicoderally.com
- GitHub: github.com/AICodeRally
Getting Help
- Check the Documentation
- Review Module Examples
- Read Coding Standards
- See Contributing Guide
Ready to build? Start creating your first module!