How ashujha301/coderank works
Project Type and Purpose
• It provides a React/Redux single-page frontend, a set of Node.js microservices (API Gateway + Code Execution service), language-specific compiler containers (C++, Java, Python, Node.js), and persistence via MongoDB (plus AWS integrations).
File Structure Analysis
• client/ folder
• React (Vite) app with Redux for state (auth, editor)
• Components: language selector, code editor, login/register, home
• Dockerfile for containerizing the frontend
• server/api-gateway/
• Exposes user-facing REST endpoints (auth, code submission)
• Controllers → Routes → Services → Models (Mongoose schemas)
• Middleware for JWT auth
• Config for AWS (S3/Auth?) and MongoDB
• server/codeExecution/
• Handles code execution requests forwarded by the API Gateway
• Similar structure: routes, controllers, models, auth-check middleware
• Likely spawns language containers or communicates with them
• **server/\*-compiler/**
• Four language containers (C++, Java, Node.js, Python) each with their own Dockerfile
• Likely used by codeExecution service to compile/execute snippets safely
• docker-compose.yml
• Orchestrates multi-container setup: frontend, api-gateway, codeExecution, language containers, MongoDB, possibly a reverse proxy
README Insights
• Name “CodeRank” implies ranking or assessment but file tree shows editor + execution