Skip to content
Projects

About

开源免费简洁的 -[算法]- -[数据库]- -[客观题]- 刷题平台

Data & Analytics

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+1
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

KECE - programming, practice, assessment

Programming practice and assessment for the classroom.

简体中文 · English · Live demo · Changelog

KECE brings an online judge, question collections, classroom practice, and examinations into one platform. Students can solve programming, SQL, and objective questions; teachers can prepare content, run assessments, and review results.

What you can do

For learners For teachers and administrators
Submit code to the algorithm judge and inspect the results Create and manage programming, SQL, and objective questions
Practice SQL against isolated test databases Organize questions into collections and classroom exercises
Work through collections and objective questions Assemble exams with ACM or OI scoring and review submissions
Read and publish Markdown solutions Monitor assessment activity and manage platform content

The platform also provides rankings, user profiles, and announcements. Available features and access depend on the user's role and the assessment configuration.

From a question to a result

Evaluation flow: choose a question, submit, queue, judge, and review the result

Choose a question, write a solution, and submit it for evaluation. The submission enters a queue before a judge worker runs it. Once the result is available, the result page presents the verdict and the available test-case details. Students can return to their code or read and publish Markdown solutions.

Teachers can use the same question bank to prepare collections, classroom exercises, and exams. Access and scoring follow the configuration of each activity.

A look at the workspace

These screenshots show historical examples from October 14, 2026. The live site runs the currently deployed release.

Write and submit

Choose an available language and work in the code editor before sending a solution for evaluation.

Historical screenshot of the programming submission editor

Review the verdict

After judging, inspect the overall verdict and test-case results to understand the outcome of a submission.

Historical screenshot of a programming submission result and test-case verdicts

Architecture

KECE architecture: frontend, API, persistent MySQL jobs and Go worker pools

The Vue frontend talks to the Spring Boot API. Submissions and persistent judge jobs (judge_job) are committed atomically in MySQL, where dedicated Go pool workers (cpp, java, python, mysql, arkts) claim leases over the internal control protocol, fetch content-addressed testcase artifacts, execute programming tasks in isolated Docker sandboxes or assess SQL against a dedicated MySQL instance, and report verified verdicts back to the backend.

Layer Technology
Frontend Vue 3, TypeScript, Vite, Pinia, Monaco Editor
Backend Java 17, Spring Boot, MyBatis, Flyway
Judging Go dedicated pool workers, Docker, Linux Cgroups, dedicated MySQL instance
Data MySQL (business data + persistent job scheduler), Redis (caching)

Queueing and isolated workers help separate submissions from execution; actual throughput and recovery depend on configuration, hardware, and workload. Measure capacity in the target environment before relying on it for an exam.

Administrators can enroll workers, set shared host capacity, run self-checks, and drain or enable nodes. Redis remains a cache for application data, while MySQL holds programming and SQL judge jobs.

The isolated local benchmark completed 1,290 submissions across MySQL-only, Python-only, and mixed bursts of 30, 100, and 300 concurrent clients. All submissions passed the single-case benchmark workload. Capacity and reconciliation report (Chinese)

Run locally

The scripts below start a development environment, not a production deployment. They reuse an existing business MySQL server and start or reuse Redis and a dedicated judge MySQL container. Install Node.js 20.19+ or 22.12+, JDK 17, Go 1.22+, Docker, and MySQL 8 first. On Linux/macOS, the scripts also require nc and pgrep.

  1. Create the business database and a database user with permissions for application and Flyway migrations. Configure DB_HOST, DB_PORT, DB_NAME, DB_USER, and DB_PASSWORD as needed; see application.yml. The scripts expect the business MySQL server to be running before startup.

  2. Install frontend dependencies:

    cd frontend
    npm ci
    cd ..
    
  3. Start the services from the repository root:

    # Windows PowerShell
    $env:SPRING_PROFILES_ACTIVE = "dev"
    .\deploy\start.ps1
    
    # Linux / macOS
    export SPRING_PROFILES_ACTIVE=dev
    bash ./deploy/start.sh
    
  4. Open localhost:5173. The API is available at http://localhost:8080/api/v1; process logs are in .logs/.

The dev profile enables local demo accounts when initialization succeeds: administrator [email protected] / admin123, and teacher [email protected] / teacher123. Initialization does not reset existing account passwords. The default profile leaves demo seeding disabled. Existing services may be skipped by the scripts, so restart the relevant process if you need changed environment settings to take effect.

[!IMPORTANT] Keep the SQL judge instance separate from the business database: judging creates and deletes temporary databases. Local scripts and deployment examples contain development defaults; review credentials, JWT secrets, network exposure, Docker access, and isolation before any production use. Never expose seeded development accounts in production.

Use deploy/stop.ps1 or deploy/stop.sh to stop the local processes managed by the startup scripts.

For a new worker, register the node once the backend is ready and start it with JUDGE_ENROLLMENT_CODE. Run the self-check and enable the node in the administration console. An enrolled worker reconnects with its stored credential. Node onboarding guide (Chinese)

Repository

frontend/   Vue application and administration console
backend/    Spring Boot API, business logic, and database migrations
judger/     Go workers, sandbox execution, and result comparison
deploy/     Local startup scripts and container configuration
docs/       Product, API, architecture, and implementation notes

Documentation

Some documents describe proposals or historical work. Consult the implementation and changelog for current behavior.

Rights and usage

This project is a private engineering system. Commercial operation, redistribution, or public deployment requires authorization from the rights holder.

Explore related projects

Loading…