-
Node.js 20+
- Download from nodejs.org
- Required for development and build
-
Supabase Account
- Sign up at supabase.com
- Create a new project
- Get required credentials:
- Project URL (format:
https://<project>.supabase.co
) - Anon/Public key (starts with
eyJ
) - Service Role key (for setup)
- Project URL (format:
-
Required API Keys
- OpenAI API key (Required)
- Get from platform.openai.com
- Must start with
sk-
- Affinda API key (Optional)
- Get from affinda.com
- 64-character string format
- OpenAI API key (Required)
- Clone Repository
git clone <repository-url>
cd clappcode
- Install Dependencies
npm install
-
Configure Environment
- Click "Connect to Supabase" in the app
- Enter your Supabase credentials:
- Project URL (format:
https://<project>.supabase.co
) - Anon/Public key (starts with
eyJ
)
- Project URL (format:
- Configure API keys:
- OpenAI API key (Required)
- Affinda API key (Optional)
-
Verify Setup
npm run verify
- Start Development Server
npm run dev
docker-compose -f docker-compose.dev.yml up
docker-compose -f docker-compose.test.yml up
docker-compose -f docker-compose.prod.yml up
npm test
npm run test:e2e
npm run test:integration
- Check Supabase credentials format:
- URL must be
https://<project>.supabase.co
- Keys must start with
eyJ
- URL must be
- Verify project status in Supabase dashboard
- Run connection test:
npm run verify
- Verify key formats:
- OpenAI: starts with
sk-
- Affinda: 64 characters
- OpenAI: starts with
- Check API quotas and limits
- Test API access:
npm run test:api
- Check Docker installation:
docker --version docker-compose --version
- Verify port availability:
lsof -i :5173
- Check container logs:
docker-compose logs