Skip to content

online-judger/online-judger-back-end

 
 

Repository files navigation

Online Judger back-end

First time clone

1. Install all requirement packages:

In Windows:

python -m pip install -r dependencies.txt

In Ubuntu:

sudo python3 -m pip install -r dependencies.txt

2. Migrate db

Run:

sudo python3 manage.py migrate --run-syncdb

Usage

To create superuser account, run:

sudo python3 manage.py createsuperuser

To run in the development server:

sudo python3 manage.py runserver 0.0.0.0:8000

Make sure you can access the admin page at:

localhost:8000/admin

Dependencies

This backend server uses celery and redis for the distributed async task queue, so you will need to install and configure theses settings properly.

Celery worker for async judging process

In this project, we are currently using redis as a backend for celery, run redis:

redis-server

To start celery worker, cd to the project folder and run:

sudo celery -A online_judger_backend worker -l info

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.9%
  • C++ 13.5%
  • Dockerfile 2.6%