Skip to content

CC451-Computer-Networks-TA-team/GraderX-BE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraderX-BE

Getting Started

Install requirements

Virtual environment setup

  1. [optional] install Virtual Python Environment builder

    pip install virtualenv 
  2. Create your virtual environment

    virtualenv -p python3 <environment_name>
    virtualenv -p python3 venv
  3. Finally, activate it

    source ./venv/bin/activate

    On activation, your terminal should now start with (venv)

  4. Make sure lists are installed, python version is 3.8

    pip list
    python -V

In a virtual environment with python 3.8

    pip install -r requirements.txt

Pull submodules

Make sure you have access to the submodule repo

git submodule update --init --recursive

Run

Make sure the virtual environment is activated

python run.py

Notes

  • When you try to upload a submissions file to the api, you'll be prompted to enter your password because the grader requires sudo access

  • If you got :

    SyntaxError: Non-ASCII character '\xe2' in file

    just add # -*- coding: utf-8 -*- to the top of console_log_parser.py file