Prerequisites
Before starting, ensure you have:- Node.js 18+ - Download
- pnpm - Install with
npm install -g pnpm - Supabase CLI - Install with
npm install -g supabase - Git - For version control
- GitHub access - To the trendingsociety repo
Step 1: Clone the Repository
Step 2: Install Dependencies
Step 3: Environment Setup
Copy the example environment file:Get Supabase keys from the Supabase Dashboard. Never commit these to git.
Step 4: Generate Types
Generate TypeScript types from the Supabase schema:Step 5: Run Development Server
- Publisher: http://localhost:3000
- Jarvis: http://localhost:3001
- Agency: http://localhost:3002
Useful Commands
Development
Database
Testing
IDE Setup
VS Code
Recommended extensions:- ESLint
- Prettier
- Tailwind CSS IntelliSense
- Supabase
Cursor
The repo includes.cursorrules for AI-assisted development. Cursor will automatically follow project patterns.
Troubleshooting
”Module not found” errors
Type errors after schema change
Port already in use
Supabase connection fails
- Check
.env.localhas correct keys - Verify project is running in Supabase dashboard
- Check network/firewall settings