Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.