Virtual Judge Based on Python
- Python3.7
- docker latest
- docker-compose latest
- Git
- Install Dependencies:
pip3 install -r requirements.txt
. - Install
Redis
andPostgres
: Change directory todockerfiles
and rundocker-compose -f dev.yml
. - Initial Database: Run
python3 ./manage.py init_install
, it will initialize databases and add default administrator accountroot/rootroot
. - Run Service:
python3 ./manage.py runserver 127.0.0.1:8000
. - Add Spider Accounts: Copy
tools/accounts-sample.json
totools/accounts.json
,and add your spider accounts.Then copytools/config-sample.json
totools/config.json
. Finally, runpython3 post_accounts.py
. - Search Problems: for example,
http://127.0.0.1:8000/api/problem/poj/3223/
.
https://github.com/VirtualJudge/spider
https://github.com/VirtualJudge/VirtualJudgeFE