Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
update readme setup instructions and clean up imports
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Werner <[email protected]>
  • Loading branch information
jgwerner committed Apr 15, 2021
1 parent 19d4a91 commit bca30d6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
12 changes: 11 additions & 1 deletion src/graderservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ Microservice used to setup new shared grader notebooks.

Install in editable mode:

pip install -r requirements.txt
pip install -e .

## Run Application

Run application locally with debug mode enabled:

```bash
export FLASK_APP=src/graderservice/graderservice
export FLASK_ENV=development
flask run
```

## Update Dependencies

Expand Down
11 changes: 6 additions & 5 deletions src/graderservice/graderservice/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

from flask import Blueprint
from flask import jsonify
from graderservice.graderservice import NB_GID
from graderservice.graderservice import NB_UID
from graderservice.graderservice import GraderServiceLauncher
from graderservice.models import GraderService
from graderservice.models import db

from .graderservice import NB_GID
from .graderservice import NB_UID
from .graderservice import GraderServiceLauncher
from .models import GraderService
from .models import db

log_file_path = path.join(path.dirname(path.abspath(__file__)), "logging_config.ini")
logging.config.fileConfig(log_file_path)
Expand Down

0 comments on commit bca30d6

Please sign in to comment.