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

Moodle_with_ripes_communication #354

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,19 @@ In papers and reports, please refer to Ripes as follows: 'Morten Borup Petersen.
organization={IEEE}
}
```
### Implementation of moodle with ripes interaction, configuration of connection to service from moodle side.
Configuring the External Tool it is done through received editing rights then add an external tool for subsequent configuration.
<p align="center">
<img src="https://github.com/moevm/mse1h2024ripes/tree/master/resources/images/externaltool.jpg?raw=true" />
</p>
Add name, URL and select LTI version.
<p align="center">
<img src="https://github.com/moevm/mse1h2024ripes/tree/master/resources/images/nameurl.jpg?raw=true" />
</p>
That’s it.
<p align="center">
<img src="https://github.com/moevm/mse1h2024ripes/tree/master/resources/images/reslti.jpg?raw=true" />
</p>



2 changes: 2 additions & 0 deletions lti_server/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export FLASK_ENV=development
export FLASK_APP=server/application/app.py
1 change: 1 addition & 0 deletions lti_server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
1 change: 1 addition & 0 deletions lti_server/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Flask==2.3.3
18 changes: 18 additions & 0 deletions lti_server/server/infra/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from flask import Flask, render_template

app = Flask(__name__, template_folder="../templates")


@app.route("/", methods=["GET"])
def main_page():
return render_template("main_page.html")


@app.route("/task/<task_id>", methods=["GET"])
def task(task_id):
return render_template("task.html", task_id=task_id)


@app.route("/user/<user_id>", methods=["GET"])
def user_summary(user_id):
return render_template("summary.html", user_id=user_id)
16 changes: 16 additions & 0 deletions lti_server/server/templates/main_page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Курс разработки на Assembler</title>
</head>
<body>
<div class="main_page">
<h1>Курс разработки на Assembler</h1>

<h2>Первая часть</h2>
<h2>Вторая часть</h2>
</div>
</body>
</html>
13 changes: 13 additions & 0 deletions lti_server/server/templates/summary.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Курс разработки на Assembler</title>
</head>
<body>
<div class="summary">
<h1>Ученик {{ user_id }}</h1>
</div>
</body>
</html>
19 changes: 19 additions & 0 deletions lti_server/server/templates/task.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Курс разработки на Assembler</title>
</head>
<body>
<div class="task">
<h1>Задание {{ task_id }}</h1>

<div class="task_buttons">
<button type="button">Подключится</button>
<button type="button">Проверить</button>
<button type="button">Перезапустить</button>
</div>
</div>
</body>
</html>
Binary file added resources/images/externaltool.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/nameurl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/reslti.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added useCase.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.