Unified monorepo for 6 AI-powered applications built with Turborepo.
| Application | Description | Port |
|---|---|---|
| PUNCH-CLOCK | HR & Attendance Management | 3000 |
| FlairAi | Staff Training & Development | 3001 |
| WaiterAi | Restaurant Service Management | 3002 |
| GuestAi | Customer Assistant & Support | 3003 |
| Serene-AI | Spa & Salon Management | 3004 |
| Ai-Artisan | AI-Powered Resume Builder | 3005 |
| Unified Dashboard | Control Center | 3006 |
# Install dependencies
pnpm install
# Run setup script
pnpm setup
# Start all applications in development mode
pnpm dev
# Build all applications
pnpm build
# Lint all code
pnpm lint
# Type check all code
pnpm type-checkW3JDev-AI-Ecosystem/
├── apps/
│ ├── punch-clock/ # HR & Attendance
│ ├── flair-ai/ # Staff Training
│ ├── waiter-ai/ # Restaurant Service
│ ├── guest-ai/ # Customer Assistant
│ ├── serene-ai/ # Spa/Salon
│ ├── ai-artisan/ # Resume Builder
│ └── unified-dashboard/ # Control Center
├── packages/
│ ├── shared-ui/ # Component library
│ ├── ai-engine/ # Gemini + DeepSeek
│ ├── auth/ # Multi-tenant auth
│ ├── database/ # Prisma schemas
│ ├── api-client/ # tRPC SDK
│ ├── config/ # Shared configs
│ │ ├── tsconfig/ # TypeScript configs
│ │ ├── eslint/ # ESLint configs
│ │ └── prettier/ # Prettier configs
│ └── utils/ # Common utilities
├── infrastructure/
│ ├── docker/
│ └── github-actions/
├── docs/
│ ├── architecture/
│ ├── agent-personas/
│ └── user-guides/
└── scripts/
- Framework: React 19, Next.js 15
- Language: TypeScript 5.7
- Build: Turborepo + pnpm
- Database: PostgreSQL (Supabase)
- AI: Google Gemini + DeepSeek
- Styling: Tailwind CSS
- API: tRPC
Shared UI component library used across all applications.
AI engine integrating Google Gemini and DeepSeek models.
Multi-tenant authentication and authorization.
Database layer with Prisma schemas.
tRPC API client SDK.
Common utility functions.
# Start specific app
pnpm dev --filter=@ecosystem/punch-clock
# Build specific app
pnpm build --filter=@ecosystem/flair-ai
# Lint specific app
pnpm lint --filter=@ecosystem/waiter-ai# Lint all packages
pnpm lint --filter="./packages/*"
# Type check all packages
pnpm type-check --filter="./packages/*"# Run all tests
pnpm test
# Run tests for specific app
pnpm test --filter=@ecosystem/guest-aiCreate .env.local files in each app directory:
# Database
DATABASE_URL="postgresql://..."
# AI Services
GEMINI_API_KEY="your_gemini_key"
DEEPSEEK_API_KEY="your_deepseek_key"
# Auth
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="your_secret"This project includes a comprehensive automated deployment solution that handles:
- ✅ API Gateway deployment to Railway (auto-scaling 2-10 replicas)
- ✅ 7 Frontend Apps deployment to Vercel
- ✅ Environment Variables synchronization across platforms
- ✅ End-to-end verification of all services
# One-command deployment (recommended)
./scripts/deploy-all.sh
# Or deploy step-by-step
./scripts/validate-railway-config.sh # Validate configuration
./scripts/railway-deploy.sh # Deploy API Gateway
./scripts/update-vercel-envs.sh <URL> # Update Vercel apps
./scripts/verify-deployment.sh <URL> # Verify deploymentRailway (API Gateway)
- Plan: Hobby ($5/month)
- Auto-scaling: 2-10 replicas
- Health checks:
/healthendpoint - Build: Automatic via
railway.toml
Vercel (Frontend Apps)
- Plan: Free tier
- Apps: All 7 applications
- Automatic SSL/TLS
- Preview deployments on PRs
- 📘 Automated Deployment Guide - Complete deployment instructions
- 📊 Deployment Status - Current deployment status
- ✅ Deployment Checklist - Step-by-step checklist
# Deploy specific app to Vercel
vercel --cwd apps/punch-clock- Create a feature branch
- Make your changes
- Ensure tests pass:
pnpm test - Ensure linting passes:
pnpm lint - Submit a pull request
The project uses GitHub Actions for continuous integration. On every PR and push:
- ✅ Build all applications
- ✅ Lint all code
- ✅ Type check all code
- ✅ Run all tests
MIT License - See LICENSE for details.
Built with ❤️ by W3JDev | Powered by Turborepo & Multi-AI Technology