A Node/React + FastAPI + Ollama app that provides AI-powered code review suggestions.
-
Local AI processing with Ollama (llama2:7b model)
-
Real-time code analysis
-
Secure, offline operation
-
Industry-standard code analysis with quality gates
-
AI-powered code improvement suggestions
-
Code quality metrics visualization
-
Auto-fix capabilities for common issues
-
Security vulnerability detection
-
Technical debt analysis
-
Real-time code quality scoring
├── code-review-dashboard/ # React frontend
└── src/ # Python backend
├── analyzers/ # Code analysis engines
├── api/ # FastAPI endpoints
└── tests/ # Test suites
- Backend Setup
# Install Python dependencies
pip install -r requirements.txt
# Start the FastAPI server
uvicorn src.api.main:app --host 0.0.0.0 --port 8000
- Frontend Setup
# Navigate to dashboard directory
cd code-review-dashboard
# Install dependencies
npm install
# Start the development server
npm start
- Access the dashboard at
http://localhost:3000
- Upload your code file for analysis
- View the comprehensive analysis including:
- Code quality metrics
- AI-powered suggestions
- Security vulnerabilities
- Auto-fix options
POST /analyze/file
- Industry-standard code analysisPOST /analyze/ai
- Enhanced AI-powered analysisPOST /apply-fix/{fix_id}
- Apply auto-fix suggestionsGET /metrics/industry-standards
- Get analysis standards info
The application uses Ollama with the Llama2 7B model for local AI processing:
# Install Ollama
curl https://ollama.ai/install.sh | sh
# Pull Llama2 model
ollama pull llama2:7b