Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab grader web-service #21

Merged
merged 20 commits into from
Feb 21, 2022
Merged

Lab grader web-service #21

merged 20 commits into from
Feb 21, 2022

Conversation

yimgzz
Copy link
Collaborator

@yimgzz yimgzz commented Nov 13, 2021

lab-grader

universal lab grader for university courses

Description

REST API is developed using Bottle framework. Works with Python 3.9
API specification is written in SUAI-lab_grader_rest_api-1.2.0-swagger.yaml

Frontend is developed using Angular 12.

Prepare for run

  • setup /static/app/auth.yml as in the example
  • put google-credential.json to /static/app
  • if needed create /nginx/.htpasswd for basic auth as in the example

Run Lab Grader web service on 80 port

docker-compose up -d

Local install

# local
pip install .

Local usage

# server mode
export GRADER_SERVER=$(hostname -i):8080
python -m lab_grader -a $GRADER_AUTH_CONFIG --logging-config $GRADER_LOGGER_CONFIG server --listen $GRADER_SERVER

# single task mode
python -m lab_grader -a $GRADER_AUTH_CONFIG --logging-config $GRADER_LOGGER_CONFIG task [options]

@yimgzz yimgzz requested a review from markpolyak November 13, 2021 10:34
@markpolyak markpolyak merged commit bfe9957 into markpolyak:rest Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants