Online Judge for NO.1 Middle School Affiliated to CCNU
Website: | https://gitlab.com/hsyoi/hsyoj |
---|
HSYOJ is still heavily under development, it may take a long time to be completed.
Recommend (No test for older version, but may run as well):
- Python >= 3.6
- Django >= 2.0
- Sphinx >= 1.7
Install Git and Python, see the websites for more information.
Clone this repository
$ git clone "https://gitlab.com/hsyoj/hsyoj.git"
Enter the repository directory
$ cd hsyoj
Create python virtual environment
$ python -m venv .venv
$ source .venv/bin/activate
Install requirements
$ pip install -r requirements.txt
Initialize the database
$ python manage.py migrate
To import the sample problems:
$ python manage.py loaddata fixture.json
Run the server
$ python manage.py runserver
Please see file "CONTRIBUTING".
The HSYOJ is licenced under the AGPL licence, see the file "LICENCE" for more information.