This is a backend implementation for an online judge system built using SpringBoot. It provides the functionality for users to submit their code for different programming problems and get the results of the submission. This implementation uses MySQL, Redis, and RabbitMQ as backend components.
- MySQL server
- Redis server
- RabbitMQ
- Java Development Kit (JDK) 1.8 or later
- Install and configure MySQL server and run the
table.sql
script to create the required tables for the database. - Install and configure Redis server.
- Install and configure RabbitMQ and set the queue name as "result" and "submit".
- Copy the
application.yaml.example
file toapplication.yaml
. - Modify the
application.yaml
file with the appropriate configurations for your system. - Run the following command to start the application:
java -jar oj-0.0.1-SNAPSHOT.jar
- Once the application is running, you can access it at
http://localhost:8080
.
- Frontend: https://github.com/wangxso/onlinejudge-FE
- Judging Core: https://github.com/wangxso/OnlineJudgeCore
- Judging Core Wrapper: https://github.com/wangxso/judger_server Note: Please make sure to configure the dependencies according to your system before running the application.
This implementation was created by wangxso. Contributions are welcome, please create a pull request with your changes.
This implementation is licensed under the MIT License. See the LICENSE
file for details.