Online Judge to challenge/hack wrong solutions. The Online Judge is working at https://gekitsui-online-judge.herokuapp.com
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.
- You have to create a
- RabbitMQ 3.6.10+
- You have to create a queue with a name
gekitsui-queue
to run the judge worker.
- You have to create a queue with a name
You have to set the following properties on your machine:
spring.oauth2.client.registration.github.client-id
which is your client ID for GitHubspring.oauth2.client.registration.github.client-secret
which is your client secret for GitHubspring.datastore.username
which is a user name of your DBspring.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
gradle webapp:bootRun
gradle judge:bootRun
- Add problem statement to
webapp/src/main/resources/problem
- Add a line to create/update a row of the problem to
ProblemConfiguration.kt
- Add your wrong solution(s), correct solution, and testcase validator to
judge
module - Create a bean which extends
JudgeSuite
.