Getting Started
This guide helps you get started with AICR platform development.
Prerequisites
- Node.js 18+
- pnpm 8+
- Git
- Neon PostgreSQL account (or use preview branches)
Quick Start
# Clone the repository
git clone https://github.com/AICodeRally/AICR.git
cd AICR
# Install dependencies
pnpm install
# Copy environment variables
cp apps/aicr/.env.example apps/aicr/.env.local
# Start development server
pnpm devProject Structure
apps/
├── aicr/ # Main platform (port 3000)
├── studio/ # Pack authoring (port 3002)
├── website/ # Marketing site (port 3001)
└── docs/ # Documentation (port 3003)
packages/
├── database/ # Prisma schema
├── packs/ # Pack system
├── contracts/ # Event schemas
└── ai-router/ # AI provider routing
docs/ # Markdown documentation
.claude/ # Agent instructionsEnvironment Variables
Key environment variables for apps/aicr/.env.local:
# Database (Neon PostgreSQL)
DATABASE_URL="postgresql://..."
# Auth
NEXTAUTH_SECRET="..."
NEXTAUTH_URL="http://localhost:3000"
# AI Providers
OPENAI_API_KEY="..."
ANTHROPIC_API_KEY="..."Development Workflow
- Read agent docs - Check
.claude/AGENTS.mdfor role guidance - Check sprint - Review
.claude/tasks/SPRINT.mdfor current work - Announce work - State task ID and action before starting
- Track progress - Update task status as you work
- Test changes - Run tests and verify locally
- Commit - Follow conventional commit format
Database Operations
# Open Prisma Studio
pnpm db:studio
# Create migration
pnpm db:migrate:dev --name <migration-name>
# Generate Prisma client
pnpm prisma generateUseful Commands
# Type checking
pnpm typecheck
# Linting
pnpm lint
# Build
pnpm build
# Deploy preview
vercel
# Deploy production
vercel --prodPlatform URLs
| Environment | URL |
|---|---|
| Production | https://app.aicoderally.com (opens in a new tab) |
| Website | https://aicoderally.com (opens in a new tab) |
| Docs | https://docs.aicoderally.com (opens in a new tab) |