FJudge is an easy-to-use judge system with FastAPI technology for competitive programming.
git clone https://github.com/fadhrr/FJudge.git
cd FJudgeTo run FJudge without Docker, you need to follow these steps:
- Make sure Python is installed on your system.
- Make sure
memusagebash script is installed (Usually installed on Linux).
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Application:
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
Replace
8000with the desired port. -
Access Application: Open a web browser and access
http://localhost:8000or the port you have specified. -
Stop the Application: Press
Ctrl + Cin the terminal to stop the application.
To run FJudge without Docker, you need to follow these steps:
docker-compose build- Customize port in
docker-compose.ymlif needed(Default is8008). - Run the container:
docker-compose up -d
- Access the application at
http://localhost:8008.
docker-compose down-
Docs (Swagger UI):
- URL:
http://localhost:8008/docs - Description: FastAPI documentation with Swagger UI.
- URL:
-
Redoc:
- URL:
http://localhost:8008/redoc - Description: FastAPI documentation with ReDoc.
- URL:
-
FJudge Editor:
- URL:
http://localhost:8008/ - Description: FJudge code editor.
- URL:
- Ensure Docker and Docker Compose are installed.
- Modify the
docker-compose.ymlfile for custom configurations. - Customize the port in both
docker-compose.ymland during the container run. - Save changes to
docker-compose.ymlbefore running the container. - Adjust the provided examples in the API documentation according to your needs.