- Docker and Docker Compose installed
- Node.js 18+ installed
- Git installed
-
Copy environment file:
cp env.example .env.local
-
Update
.env.localwith your values:NEXT_PUBLIC_SITE_URL=http://localhost:3000 NEXT_PUBLIC_SUPABASE_URL=http://localhost:5430 NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ... SUPABASE_SERVICE_ROLE_KEY=eyJh... NEXT_PUBLIC_DATABASE_URL=postgres://postgres:postgres@localhost:54322/postgres
-
Start Docker Desktop
-
Run the start script:
chmod +x start-local-supabase.sh ./start-local-supabase.sh
-
Verify services are running:
docker-compose ps
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Visit the application:
- Open http://localhost:3000
- Try signing up with email/password
- Supabase API: http://localhost:5430
- Auth Service: http://localhost:5430/auth/v1/
- PostgREST: http://localhost:5430/rest/v1/
- Realtime: http://localhost:5430/realtime/v1/
- Storage: http://localhost:5430/storage/v1/
- Database: localhost:54322
- MailHog UI: http://localhost:8025
- MailHog Web UI: http://localhost:8025
- SMTP Server: localhost:1025
- All emails sent by the auth service will be captured by MailHog
- Anon Key:
eyJ... - Service Key:
eyJ...
-
Docker not running:
# Start Docker Desktop first # Then run the start script
-
Port conflicts:
# Check if ports are in use lsof -i :5430 lsof -i :54322 lsof -i :8025 -
Database connection issues:
# Check database logs docker-compose logs supabase-db -
Auth service not responding:
# Check auth service logs docker-compose logs supabase-auth -
Email not working:
- Check MailHog UI at http://localhost:8025
- Verify SMTP configuration in docker-compose.yml
# Stop all services
docker-compose down
# Remove all volumes
docker volume rm real-time-collaborative-plateform_supabase_db_data real-time-collaborative-plateform_supabase_storage_data
# Start fresh
./start-local-supabase.sh# View all logs
docker-compose logs -f
# View specific service logs
docker-compose logs -f supabase-auth
# Access database
docker-compose exec supabase-db psql -U postgres -d postgres
# Restart specific service
docker-compose restart supabase-auth
# Check service health
curl http://localhost:5430/healthSee oauth-setup.md for detailed instructions on setting up Google and GitHub OAuth providers.
- Service Status:
docker-compose ps - Resource Usage:
docker stats - Logs:
docker-compose logs -f - Health Check:
curl http://localhost:5430/health