NDOJ/README.md

91 lines
2 KiB
Markdown
Raw Normal View History

2021-01-02 07:49:12 +00:00
LQDOJ: Le Quy Don Online Judge
===
[![](https://github.com/DMOJ/online-judge/workflows/build/badge.svg)](https://lqdoj.edu.vn/)
[![Python](https://img.shields.io/pypi/pyversions/tensorflow.svg?style=plastic)](https://python.org)
[![OS](https://img.shields.io/badge/Ubuntu-16.04%20%7C%2018.04%20%7C%2020.04-brightgreen)](https://ubuntu.com/download)
## Overview
Homepage: [https://lqdoj.edu.vn](https://lqdoj.edu.vn)
2021-01-02 07:55:04 +00:00
Based on [DMOJ](https://dmoj.ca/).
2021-01-02 07:49:12 +00:00
Supported languages:
- Assembly (x64)
- AWK
- C
- C++03 / C++11 / C++14 / C++17
- Java 11
- Pascal
- Perl
- Python 2 / Python 3
2021-01-02 08:12:18 +00:00
Support plagiarism detection via [Stanford MOSS](https://theory.stanford.edu/~aiken/moss/).
2021-01-02 07:49:12 +00:00
## Installation
2021-01-02 08:12:18 +00:00
Check out the install documentation at [docs.dmoj.ca](docs.dmoj.ca). Remember to update the `local_settings.py`.
## Usage
2021-01-02 07:49:12 +00:00
Activate virtualenv:
```bash
source dmojsite/bin/activate
2021-01-02 07:49:12 +00:00
```
Run server:
```bash
python manage.py runserver 0.0.0.0:8000
2021-01-02 07:49:12 +00:00
```
2021-01-02 07:49:12 +00:00
Create configure file for judge:
```bash
python dmojauto-conf
2021-01-02 07:49:12 +00:00
```
2021-01-02 07:49:12 +00:00
Create folder for problems, change the dir in judge conf file and `local_settings.py`.
2021-01-02 07:49:12 +00:00
Connect judge:
```bash
python manage.py runbridged
dmoj 0.0.0.0 -p 9999 -c judge/conf1.yml (depend on port in the local_settings.py and directory of conf file)
```
2021-01-02 07:49:12 +00:00
Update vietnamese translation:
- go to `locale/vi`
- modify `.po` file
- ```bash python manage.py compilemessages```
- ```bash python manage.py compilejsi18n```
2020-03-16 02:28:46 +00:00
2021-01-02 07:49:12 +00:00
Run chat server:
```bash
2020-03-16 02:28:46 +00:00
docker run -p 6379:6379 -d redis:2.8
2021-01-02 07:49:12 +00:00
```
## Screenshots
### Leaderboard
Leaderboard with information about contest rating, performance points and real name of all users.
![](https://i.imgur.com/ampxHXM.png)
### Admin dashboard
Admin dashboard helps you easily managing problems, users, contests and blog posts.
![](https://i.imgur.com/iccr3mh.png)
### Statement editor
You can write the problems' statement in Markdown with LaTeX figures and formulas supported.
![](https://i.imgur.com/CQVC754.png)
### Chat
Users can communicate with each other and can see who's online.
![](https://i.imgur.com/y9SGCgl.png)