A judger of Knight Online Judge which is written in Kotlin to judge the submission code of the online judge.
This project is from the 30 days challenge which is held by iThome. About the tutorial articles, you can see them here. (in Traditional Chinese)
First, you have to set up the backend project.
Second, you need to add a file /main/resources/hikari.properties
to set up the connection setting with the PostgreSQL server. The content in it is:
dataSourceClassName=org.postgresql.ds.PGSimpleDataSource
dataSource.user=......
dataSource.password=......
dataSource.databaseName=......
dataSource.portNumber=......
dataSource.serverName=......
Third, you need to install Docker to use container to judge the code. You need to pull these images:
- zenika/kotlin
- gcc
- python
Last, run this project with the command gradlew run
.
See the open issues for a list of proposed features (and known issues).
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Maplewing - Website - [email protected]
Project Link: https://github.com/sinmaplewing/knight-online-judge-judger