readme.md 1.56 KB
Newer Older
1
### How to wrap up and run Moodle Server:
2

Artem Baranovskyi's avatar
Artem Baranovskyi committed
3
To use ASYST with universal BERT model based on German language just Run these commands at CLI.
4
5

~~~bash
Artem Baranovskyi's avatar
Artem Baranovskyi committed
6
docker-compose up -d --build && ./install_moodle.sh
7
~~~
8

Artem Baranovskyi's avatar
Artem Baranovskyi committed
9
Infrastructure rolls up a Brand New Moodle instance. If you already have Moodle LMS, you could use it's DB backup at this project. Just paste it at root folder and rename it to moodle_backup.sql 
Artem Baranovskyi's avatar
Artem Baranovskyi committed
10

11
12
Use these creds to access Moodle admin page
admin:rootpassword
Artem Baranovskyi's avatar
Artem Baranovskyi committed
13
These creds could be easily changed as other environmental variables at .env
14

Artem Baranovskyi's avatar
Artem Baranovskyi committed
15
16
17
18
After installation the Database will have all necessary entities to check plugins functionality (Cource / Test / Students / QuizAttempts ...).

For demo, it's quite enough to get the link https://www.moodle.loc/mod/quiz/report.php?id=2&mode=grading&slot=1&qid=1&grade=needsgrading and wait for auto answer valuation.

Artem Baranovskyi's avatar
Artem Baranovskyi committed
19
20
21
22
23
## Development tips
To facilitate DB monitoring at IDE set such a Database connection URL: 
~~~bash
jdbc:mariadb://localhost:3306/moodle
~~~
24

Artem Baranovskyi's avatar
Artem Baranovskyi committed
25
26
It is suggested to use our moodle plugin to communicate with Flask-based ASYST script using such a
route http://127.0.0.1:5000/api/autograde
27
28
29

Now the preinstalled MOODLE LMS is available at https://www.moodle.loc

30
31
32
**Note**: Bind https://www.moodle.loc to your localhost at **hosts** file depending on your OS.

## Running Unit Tests
33
To run only Plugin's Test please run at project's CLI (inside container):
34
35
36
~~~bash
vendor/bin/phpunit --testsuite local_asystgrade_testsuite
~~~
37
38
39
40
or run outside it:
~~~bash
docker-compose exec moodle vendor/bin/phpunit --testsuite local_asystgrade_testsuite
~~~
41