Skip to content

blue-jam/gekitsui-online-judge

Repository files navigation

gekitsui-online-judge

build codecov

Online Judge to challenge/hack wrong solutions. The Online Judge is working at https://gekitsui-online-judge.herokuapp.com

How to run

Prerequisites

You have to have the following software on your machine.

  • PostgreSQL 10.10+
    • You have to create a gekitsui DB. You don't have to create any tables in the DB.
  • RabbitMQ 3.6.10+
    • You have to create a queue with a name gekitsui-queue to run the judge worker.

You have to set the following properties on your machine:

  • spring.oauth2.client.registration.github.client-id which is your client ID for GitHub
  • spring.oauth2.client.registration.github.client-secret which is your client secret for GitHub
  • spring.datastore.username which is a user name of your DB
  • spring.datastore.password which is a password of your DB

Since this project uses the Spring Boot Dev Tools, you can create ~/.config/spring-boot/spring-boot-devtools.yml and set your properties in the file. Like:

spring:
  security:
    oauth2:
      client:
        registration:
          github:
            client-id: YOUR_CLIENT_ID
            client-secret: YOUR_CLIENT_SECRET
  datasource:
    username: YOUR_USER_NAME
    password: YOUR_PASSOWRD

Web server

gradle webapp:bootRun

Judge worker

gradle judge:bootRun

How to add a new problem

  1. Add problem statement to webapp/src/main/resources/problem
  2. Add a line to create/update a row of the problem to ProblemConfiguration.kt
  3. Add your wrong solution(s), correct solution, and testcase validator to judge module
  4. Create a bean which extends JudgeSuite.

About

Online Judge to challenge/hack wrong solutions. Written in Kotlin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published