GithubHelp home page GithubHelp logo

blue-jam / gekitsui-online-judge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 778 KB

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

Home Page: https://gekitsui-online-judge.herokuapp.com

License: Apache License 2.0

Kotlin 73.56% HTML 15.37% CSS 0.20% TypeScript 9.61% JavaScript 1.26%

gekitsui-online-judge's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.