An intelligent code review system powered by Google's Gemini AI and deployed on AWS cloud infrastructure.
- AI-Powered Analysis: Real-time code feedback using Gemini AI
- Cloud-Native: AWS deployment with containerized architecture
- Interactive UI: Rich code editor with syntax highlighting
- Scalable: Elastic Container Service with auto-scaling
- Secure: AWS security best practices and encrypted data storage
- Frontend: React.js, Monaco Editor
- Backend: Python Flask
- Database: PostgreSQL (AWS RDS)
- Cloud: AWS (ECS, ECR, RDS, ALB)
- AI: Google Gemini AI
- Infrastructure: Docker, Terraform
- Node.js 16+
- Python 3.9+
- Docker Desktop
- AWS CLI
- Google Gemini API key
- Clone repository
git clone https://github.com/yourusername/ai-code-reviewer.git
cd ai-code-reviewer- Set up environment variables
Create
.envfile:
POSTGRES_USER=postgres
POSTGRES_PASSWORD=yourpassword
POSTGRES_DB=ai_review
DATABASE_URL=postgresql://postgres:yourpassword@localhost:5432/ai_review
GEMINI_API_KEY=your_gemini_api_key- Start containers
docker-compose up --build- Push to ECR
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com
docker push ${AWS_ACCOUNT_ID}.dkr.ecr.us-east-1.amazonaws.com/ai-code-reviewer:latest| Endpoint | Method | Description |
|---|---|---|
/api/analyze |
POST | Submit code for analysis |
/api/health |
GET | Service health check |
- SSL/TLS encryption
- AWS WAF protection
- Secrets management
- VPC isolation
- Regular security patches
- CloudWatch metrics
- ECS insights
- RDS monitoring
- Application logs
- Fork repository
- Create feature branch
git checkout -b feature/amazing-feature- Commit changes
git commit -m 'Add amazing feature'- Push and create PR
MIT License - see LICENSE.md
- Create GitHub issue
- Documentation: docs/
REACT_APP_API_URL=http://localhost:5000
POSTGRES_USER=postgres
POSTGRES_PASSWORD=localREACT_APP_API_URL=https://api.aicodereview.com
DATABASE_URL=postgresql://${RDS_USER}:${RDS_PASS}@${RDS_ENDPOINT}:5432/ai_reviewNote: Replace placeholder values before deployment.