How kiran04-code/image-building_microservice works
ImageForge is a source-to-container-image microservice with a React console and an API for starting builds and polling their status. The core path is: submit a GitHub repository, inspect its files, detect its stack, generate a Dockerfile when needed, then start AWS CodeBuild to build and push an image to ECR; status reads query CodeBuild. The frontend also presents build history and API documentation, though the shown history rows are local sample data. Edges follow the excerpts and README; unsampled implementation details are omitted.
Main entry points: build.service.ts Build orchestration · App.tsx Build console · index.ts Express server · build.route.ts Build routes
Components 14
User interface
- Build console
Source_image_Platfrom/frontend/src/App.tsx - React entry
Source_image_Platfrom/frontend/src/main.tsx - API docs and tester
Source_image_Platfrom/frontend/src/App.tsx
Build API
- Express server
Source_image_Platfrom/backend/src/index.ts - Build routes
Source_image_Platfrom/backend/src/routes/build.route.ts - Build controller
Source_image_Platfrom/backend/src/controller/build.controller.ts
Repository analysis
- GitHub inspection
Source_image_Platfrom/backend/services/github.service.ts - Project detection
Source_image_Platfrom/backend/services/project-detector.service.ts - Dockerfile generation
Source_image_Platfrom/backend/services/dockerfile-generator.service.ts
Image build and registry
- Build orchestration
Source_image_Platfrom/backend/services/build.service.ts - AWS CodeBuild
- Amazon ECR
Other components
- Build user
- GitHub repository
Connections 15
- Build user → Build console: submits repository
Source_image_Platfrom/frontend/src/App.tsx - React entry → Build console: renders
Source_image_Platfrom/frontend/src/main.tsx - Build console → Express server: starts and polls builds
Source_image_Platfrom/frontend/src/App.tsx - API docs and tester → Express server: tests API
- Express server → Build routes: mounts routes
Source_image_Platfrom/backend/src/index.ts - Build routes → Build controller: dispatches requests
Source_image_Platfrom/backend/src/routes/build.route.ts - Build controller → Build orchestration: starts or reads build
Source_image_Platfrom/backend/src/controller/build.controller.ts - Build orchestration → GitHub inspection: inspects repository
Source_image_Platfrom/backend/services/build.service.ts - GitHub inspection → GitHub repository: reads repository metadata
Source_image_Platfrom/backend/services/github.service.ts - Build orchestration → Project detection: detects project
Source_image_Platfrom/backend/services/build.service.ts - Build orchestration → Dockerfile generation: generates Dockerfile
Source_image_Platfrom/backend/services/build.service.ts - Dockerfile generation → Project detection: uses detection result
Source_image_Platfrom/backend/services/dockerfile-generator.service.ts - Build orchestration → AWS CodeBuild: starts and queries builds
Source_image_Platfrom/backend/services/build.service.ts - AWS CodeBuild → GitHub repository: fetches build source
- AWS CodeBuild → Amazon ECR: pushes image