How dctxv/ict30017-digital-career-hub works
1. Repository shape
- This repo is organized as a small multi-service Node.js system for a “Digital Career Hub.”
- The meaningful runtime code is split into two backend services: server/ and ai-service/.
- client/ exists as a placeholder, but there is no tracked frontend implementation in this snapshot.
2. Primary product boundary
- The system’s main workflow is resume review for students/job seekers.
- The backend appears to handle resume upload, text extraction, sanitization, and orchestration.
- AI-based evaluation is isolated into a separate service so the core app and the AI logic can evolve independently.
3. User-facing backend: server/
- server/src/app.js is the main application entrypoint, likely bootstrapping the API server.
- server/src/routes/resume.js defines the resume-related API surface.
- server/src/middleware/upload.js suggests the server accepts file uploads as part of the resume flow.
- The presence of controllers/, models/, services/, and jobs/ indicates a layered structure, even though most of those folders are currently empty placeholders.
4. Resume ingestion pipeline
- The server-side pipeline likely follows this sequence:
- receive a resume file through the upload middleware,
- parse the document with server/src/utils/fileParser.js,
- clean or normalize extracted text with server/src/utils/sanitise.js,
- forward the processed content to the AI review layer.
- This separation shows a clear boundary between file handling and AI evaluation.
5. AI subsystem: ai-service/
- ai-service/index.js is the service entrypoint for the AI component.
- src/services/resumeReviewer.js is the core domain service, likely responsible for turning resume text into structured feedback.
- src/utils/aiClient.js is an abstraction around the underlying AI provider or model call.
- src/schemas/resumeSchema.js suggests request/response validation or shape enforcement for the AI contract.
6. Contract between services
- The architecture implies a clean interface between the main server and the AI service: the server prepares resume content, and the AI service returns structured review output.
- Keeping parsing/sanitization in server/ and review logic in ai-service/ reduces coupling and makes the AI layer independently testable.
7. Validation and safety boundaries
- resumeSchema.js indicates the AI service expects a defined input shape instead of raw, unstructured payloads.
- sanitise.js on the server side suggests the project intentionally normalizes or cleans extracted text before it reaches the review logic.
- That combination is important for reliability because resume files can vary widely in formatting and content quality.
8. Testing
- ai-service/tests/testResumeReviewer.js shows the AI review logic has dedicated tests.
- The custom/ folder contains multiple sample_resume*.txt files, which are likely test fixtures or prompt-evaluation examples.
- This points to a strong focus on iterative AI behavior testing rather than only traditional API testing.
9. Reference documents and evaluation assets
- docs/database/ contains PDF and DOCX resumes plus a job market database archive.
- These files look like development/test artifacts for parser validation and AI prompt tuning.
- docs/darius_notes/ai_prompting_engineering.md further suggests the team used prompt engineering notes as part of the AI workflow.
10. Deployment/runtime picture
- Both server/ and ai-service/ are Node.js applications with their own package.json and lockfiles.
- That means the architecture is likely two deployable services rather than one monolith.
- The repo does not show infrastructure code, so the runtime topology is inferred from service boundaries rather than explicit deployment manifests.
11. What is not present yet
- The client/ folder is empty in the tree, so the UI layer is not part of the visible architecture here.
- Several backend folders are scaffolds only, which suggests the repository is either mid-development or intentionally structured ahead of implementation.
12. Diagram takeaway
- For an architecture diagram, draw:
- a user-facing web/client boundary,
- a Node.js API server handling upload, parsing, and sanitization,
- a separate AI review service handling validation, model access, and resume scoring/feedback,
- supporting test fixtures/docs feeding development and validation.
- The key design idea is the split between “resume ingestion” and “AI evaluation.”
Main entry points: resumeReviewer.js Reviewer · resume.js Resume API · index.js AI Service · fileParser.js File Parser
Components 17
API Server
Resume ingestion and orchestration
- API App · Bootstraps the main backend service
server/src/app.js - Resume API · Resume-related HTTP endpoints
server/src/routes/resume.js - Upload Middleware · Handles incoming resume files
server/src/middleware/upload.js - File Parser · Extracts text from uploaded resumes
server/src/utils/fileParser.js - Sanitiser · Cleans and normalises extracted resume text
server/src/utils/sanitise.js - Server Services · Placeholder for future server-side business services
server/src/services - Server Models · Placeholder for future domain models
server/src/models - Server Jobs · Placeholder for background jobs and async work
server/src/jobs
AI Service
Resume review and model access
- AI Service · Separately deployable resume review service
ai-service/index.js - Resume Schema · Defines the AI service input/output shape
ai-service/src/schemas/resumeSchema.js - Reviewer · Generates structured resume feedback
ai-service/src/services/resumeReviewer.js - AI Client · Wraps the underlying model or API call
ai-service/src/utils/aiClient.js - Reviewer Tests · Dedicated tests for resume review behavior
ai-service/tests/testResumeReviewer.js
Validation Assets
Fixtures, tests, and reference materials
- Sample Resumes · Prompt-evaluation and parser samples
ai-service/custom - Resume Corpus · PDF and DOCX resumes plus job market archive
docs/database - Prompt Notes · AI prompting and engineering notes
docs/darius_notes/ai_prompting_engineering.md
Connections 17
- Client → API App: calls API · Client boundary would interact with the backend
- API App → Resume API: mounts · App wires the resume API routes
- Resume API → Upload Middleware: accepts files · Resume endpoints use upload handling
- Upload Middleware → File Parser: parses · Uploaded resume files are converted to text
- File Parser → Sanitiser: normalises · Extracted text is cleaned before review
- Sanitiser → AI Service: submits review · Prepared resume content is sent to the AI service
- AI Service → Resume Schema: validates contract · AI service enforces request/response shape
- AI Service → Reviewer: routes to core · Service entry delegates to the reviewer
- Reviewer → AI Client: calls model · Reviewer uses the AI provider adapter
- Reviewer → Resume Schema: uses schema · Reviewer follows the defined contract
- Reviewer Tests → Reviewer: verifies · Tests exercise reviewer behavior
- Sample Resumes → Reviewer Tests: feeds fixtures · Sample text files support evaluation runs
- Resume Corpus → File Parser: validates parsing · Reference documents are useful for parser checks
- Prompt Notes → Reviewer: guides prompts · Notes inform review logic and prompt design
- Server Services → Resume API: future boundary · Reserved for server business logic
- Server Models → Resume API: future boundary · Reserved for persistence/domain models
- Server Jobs → Resume API: future boundary · Reserved for async processing