System Requirements
Node.js
Version 20 or higher
Package Manager
pnpm (recommended) or npm
Database
Supabase account
Wallet
Cronos Testnet with CRO and USDC
Installation Steps
1
Clone Repository
2
Install Dependencies
Using pnpm (recommended):Or using npm:
3
Environment Configuration
Copy the example environment file:Edit
.env with your credentials:4
Database Setup
Run migrations in order:Or manually execute SQL files:
supabase/migrations/001_relay_core_schema.sqlsupabase/migrations/002_complete_schema.sqlsupabase/migrations/012_escrow_sessions.sqlsupabase/migrations/013_rwa_settlement.sqlsupabase/migrations/20260119_rwa_state_machine.sqlsupabase/migrations/20260122_fix_schema_gaps.sql
5
Start Services
Open three terminal windows:Terminal 1 - FrontendRuns on http://localhost:5173Terminal 2 - GraphQL APIRuns on http://localhost:4000Terminal 3 - IndexersBackground cron jobs
6
MCP Server (Optional)
Verification
- Frontend
- GraphQL
- Database
Navigate to http://localhost:5173You should see the Relay Core dashboard. Connect your wallet to verify integration.
Troubleshooting
Port Already in Use
Port Already in Use
If port 5173 or 4000 is already in use:
Database Connection Failed
Database Connection Failed
Verify Supabase credentials in
.env:- Check
VITE_SUPABASE_URLmatches your project URL - Verify
VITE_SUPABASE_ANON_KEYis correct - Ensure Row Level Security policies are configured
Wallet Connection Issues
Wallet Connection Issues
- Ensure you’re on Cronos Testnet (Chain ID 338)
- Verify
VITE_WALLETCONNECT_PROJECT_IDis set - Check browser console for errors
Build Errors
Build Errors
Clear cache and reinstall: