How sakshampaliwal21/smart-competency-diagnostic works
Smart Competency Diagnostic is a candidate-facing app for account access, profile management, technical assessment, score and skill-gap reporting, and job/course suggestions. The main flow is mobile navigation → API requests → authenticated backend routes → PostgreSQL-backed results. Assessment and recommendations are separate domain stages; profile and authentication support them. Backend route and calculation details are sampled, while several frontend screens are known through the source index only, so their detailed behavior is not inferred.
Main entry points: App.js Screen navigation · api.js HTTP API client · db.js Prisma client · server.js HTTP API server
Components 19
Candidate app
- Screen navigation
frontend/App.js - Login screen
frontend/src/screens/LoginScreen.js - Registration screen
frontend/src/screens/RegisterScreen.js - Candidate dashboard
frontend/src/screens/DashboardScreen.js - Assessment screen
frontend/src/screens/AssessmentScreen.js - Performance report
frontend/src/screens/ReportScreen.js - Recommendations screen
frontend/src/screens/RecommendationsScreen.js - Recommendation view
frontend/src/screens/RecommendationScreen.js - HTTP API client
frontend/src/api.js
Backend services
- HTTP API server
backend/src/server.js - Account access
backend/src/auth.js - JWT authorization
backend/src/middleware/authMiddleware.js - Candidate profile
backend/src/profile.js - Prisma client
backend/src/db.js - PostgreSQL data
backend/prisma/schema.prisma
Assessment results
- Assessment scoring
backend/src/assessment.js - Question seeding
backend/src/seedQuestions.js
Career guidance
- Job and course matching
backend/src/recommendations.js
Other components
- Candidate
Connections 29
- Candidate → Screen navigation: uses
frontend/App.js - Screen navigation → Login screen: routes to
frontend/App.js - Screen navigation → Registration screen: routes to
frontend/App.js - Screen navigation → Candidate dashboard: routes to
frontend/App.js - Screen navigation → Assessment screen: routes to
frontend/App.js - Screen navigation → Recommendations screen: routes to
frontend/App.js - Screen navigation → Performance report: routes to
frontend/App.js - Login screen → HTTP API client: requests login
frontend/src/screens/LoginScreen.js - Registration screen → HTTP API client: requests signup
frontend/src/screens/RegisterScreen.js - Candidate dashboard → HTTP API client: loads profile
frontend/src/screens/DashboardScreen.js - Assessment screen → HTTP API client: loads and submits
frontend/src/screens/AssessmentScreen.js - Performance report → HTTP API client: loads report
frontend/src/screens/ReportScreen.js - Recommendations screen → HTTP API client: loads suggestions
frontend/src/screens/RecommendationsScreen.js - Recommendation view → HTTP API client: requests data
frontend/src/screens/RecommendationScreen.js - HTTP API client → HTTP API server: sends HTTP requests
frontend/src/api.js - HTTP API server → Account access: mounts routes
backend/src/server.js - HTTP API server → Candidate profile: mounts routes
backend/src/server.js - HTTP API server → Assessment scoring: mounts routes
backend/src/server.js - HTTP API server → Job and course matching: mounts routes
backend/src/server.js - Account access → Prisma client: reads and writes
backend/src/auth.js - Candidate profile → Prisma client: reads and writes
backend/src/profile.js - Assessment scoring → Prisma client: reads and writes
backend/src/assessment.js - Job and course matching → Prisma client: reads records
backend/src/recommendations.js - Prisma client → PostgreSQL data: accesses
- Account access → JWT authorization: protects routes
- Candidate profile → JWT authorization: protects routes
backend/src/profile.js - Assessment scoring → JWT authorization: protects routes
backend/src/assessment.js - Job and course matching → JWT authorization: protects routes
backend/src/recommendations.js - Question seeding → Prisma client: uses client
backend/src/seedQuestions.js