Skip to content

whitezhang/JudgeSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JudgeSystem

Version

Dev

TECH

Main Parts

  • ./core -> judgerclient
  • ./web -> web
  • ./src -> golang web service

How to use

You'd better build this JudgeSystem in a cleaned Centos System, such as Docker.

sh -x prepare_env.sh
sh -x build.sh
cd ./output && sh -x ./restart_unserver.sh

Note: Make sure you have checked the prepare_env.sh script and know what it is going to do before running.

RESTfulAPI(JSON)

Signin

IP:PORT/slogin?username=xxx&password=xxx
  • Return 200 if succeed else 400

Get the user

IP:PORT/suser?uid=xxx
  • Return 200 if succeed else 400

Get the problem

IP:PORT/sprobleminfo?pid=xxx
  • Return 200 if succeed else 400

Get the contests

IP:PORT/scontests?page=xxx
  • Return 200 if succeed else 400

Get the contest

IP:PORT/scontestinfo?cid=xxx
  • Return 200 if succeed else 400

Submit the answer (POST)

IP:PORT/ssubmit?pid=xxx&code=xxx&lang=xxx&author=xxx
  • Return 200 if succeed else 400

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published