Virtual Judge Based on Python
- Python3.7
- docker latest
- docker-compose latest
- Git
- Install Dependencies:
pip3 install -r requirements.txt. - Install
RedisandPostgres: Change directory todockerfilesand 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.jsontotools/accounts.json,and add your spider accounts.Then copytools/config-sample.jsontotools/config.json. Finally, runpython3 post_accounts.py. - Search Problems: for example,
http://127.0.0.1:8000/api/problem/poj/3223/.