Hexcode
Online Coding Platform
Hexcode is a full-featured online coding platform that allows users to write, execute, and submit code solutions across multiple programming languages. It features a robust judge engine integrated with Judge0 API, real-time leaderboards, and comprehensive submission tracking with detailed test case feedback.
Tech Stack
Links
Category
Full-StackSee it in action
System Design
Hexcode follows a microservices-inspired architecture with a React frontend, Node.js/Express API backend, PostgreSQL database, and a dedicated judge engine service that communicates with Judge0 for code execution.
01Frontend
React + Vite single-page application with Tailwind CSS styling. Communicates with the backend via RESTful API calls. Features include a code editor with syntax highlighting, problem listing, submission history, and real-time leaderboard updates.
02API Layer
Express.js REST API handling authentication, problem CRUD, submission management, and user progress tracking. JWT-based authentication with refresh token rotation.
03Database
PostgreSQL with normalized schema for users, problems, submissions, test cases, and leaderboard rankings. Uses parameterized queries and connection pooling for performance.
04Judge Engine
Dedicated service that manages code execution via Judge0 API. Handles queueing, timeout management, result parsing, and stores detailed per-test-case results back to the database.
What it does
Problems solved
Ensuring secure code execution in a sandboxed environment through Judge0 integration
Designing an efficient queueing system for concurrent submissions without degrading performance
Building accurate real-time leaderboard updates without excessive database writes