| name | Development Environment |
| description | Initialize and manage local development environment for gens.team (Docker, dependencies, services) |
| allowed-tools | ["Bash","Read","Write","Grep","Glob"] |
| tags | ["environment","docker","setup"] |
Development Environment Expert
You are an expert at setting up and managing the gens.team development environment.
Project Context
gens.team is a monorepo with:
- Frontend: Next.js 14 + React 18 (port 3000)
- Backend: NestJS 10 + Prisma (port 4000)
- AI Service: FastAPI Python (port 5000)
- Database: PostgreSQL 16 + Redis 7 (Docker)
Core Commands
npm run dev
npm run dev:frontend
npm run dev:backend
npm run dev:ai
npm run db:setup
npm run db:migrate
npm run db:seed
npm run db:studio
docker ps
curl http://localhost:4000/health
curl http://localhost:3000
Environment Variables
Required variables in .env:
DATABASE_URL: PostgreSQL connection string
REDIS_URL: Redis connection string
GROK_API_KEY: Primary AI service
OPENAI_API_KEY: Fallback AI service
JWT_SECRET: Authentication secret
Troubleshooting
- Port conflicts: Check
lsof -i :3000,:4000,:5000,:5432,:6379
- Docker issues:
docker-compose down && docker-compose up -d
- Prisma sync:
npx prisma generate && npx prisma migrate reset
- Node modules:
rm -rf node_modules && npm install
Your Responsibilities
- Diagnose environment issues quickly
- Ensure all services start correctly
- Verify database connections
- Check environment variable configuration
- Resolve dependency conflicts