How rajeev-k/eureka works
Main Components
a. Frontend Layer:
• Single Page Application (SPA) built with TypeScript
• Key components:
• Search interface
• Admin interface
• File viewer (Monaco editor)
• History viewer
• Diff viewer
b. Backend Layer:
• Java-based web service
• RESTful API endpoints
• Core services:
• Search Engine (Lucene-based)
• Git Service
• Source Code Analyzer
c. Storage Layer:
• Local file system mount (Docker volume)
• Git repository integration (optional)
d. Container Infrastructure:
• Docker container
• Volume mapping
• Port mapping (8888:8080)
[Client Browser] → Port 8888
• ↓
[Docker Container (8080)]
• Frontend (TypeScript SPA)
• Search UI
• Admin UI
• Monaco Editor
• Git Integration UI
• Backend (Java WebService)
• Search Service
• Git Service
• Source Code Analyzer
• Storage
• Docker Volume Mount
• Local Git Repositories
Key Interactions to Highlight
a. External Interactions:
• Browser to Docker container communication
• Docker volume mapping to host file system
b. Internal Interactions:
• Frontend to Backend API calls
• Backend services interaction with file system
• Search engine indexing flow
• Git integration flow
Implementation Details
a. Technologies:
• TypeScript/JavaScript (Frontend)
• Java (Backend)
• Lucene (Search Engine)
• Monaco Editor (Code Viewer)
• Docker (Container)
b. Key Files/Components:
• SearchService.java
• GitService.java
• SearchEngine.java
• AdminController.ts
• SearchController.ts