Skip to content

Commit

Permalink
Merge pull request #85 from AAU-P5-Moodle/82-documentation-documentat…
Browse files Browse the repository at this point in the history
…ion-for-homework-activity-module

Created the readme file for the activity plugin
  • Loading branch information
MarkusHundborg authored Nov 26, 2024
2 parents 388971d + 3fed85f commit 205171f
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 9 deletions.
61 changes: 52 additions & 9 deletions server/moodle/mod/homework/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,41 @@
# homework #
# Homework Activity Module #

TODO Describe the plugin shortly here.
This is a plugin
This plugin adds a new activity resource as an option which can be
added to a course section.

TODO Provide more detailed description here.
This plugin works as a framework for the creation of homework in a course section.
The homework should be created by teachers and be displayed to the enrolled students of a course.
The teachers can add different homework material, such as literature, links and videos, to the homework activity.
The homework can also include a due date and a description of the homework.

## Installing via uploaded ZIP file ##
## Database Structure ##

When installing the homework activity module the database is set up.
The database structure is defined by the following ER-diagram:
![ER-diagram](readme/ER-diagram.png)

And database tables are constructed based on the following relational schema:
![Relational schema](readme/relationalschema.png)
The table names ending with underscore are Moodle core tables that have not been altered,
but have been used to create a relation to the new tables.

## Installation ##

### Installing via Uploaded ZIP file ###

1. Log in to your Moodle site as an admin and go to _Site administration >
Plugins > Install plugins_.
2. Upload the ZIP file with the plugin code. You should only be prompted to add
extra details if your plugin type is not automatically detected.
3. Check the plugin validation report and finish the installation.

## Installing manually ##
### Installing Manually ###

The plugin can be also installed by putting the contents of this directory to

{your/moodle/dirroot}/mod/homework

Afterwards, log in to your Moodle site as an admin and go to _Site administration >
Afterwards, log in to your Moodle site as an admin and go to Site administration >
Notifications_ to complete the installation.

Alternatively, you can run
Expand All @@ -28,9 +44,36 @@ Alternatively, you can run

to complete the installation from the command line.

## License ##
## Usage ##
Step 1: On the course page turn on 'Edit mode'.
![Step 1](readme/Usagestep1.png)

Step 2: Click on the 'Add an activity or resource' button.
![Step 2](readme/Usagestep2.png)

Step 3: Select the 'Homework' activity.
![Step 3](readme/Usagestep3.png)

2024 PV
Step 4: Insert the name and description for the homework.
You can also enable a due date for the homework if needed and save the homework.
![Step 4](readme/Usagestep4.png)

The course page should now contain your homework:
![Step 5](readme/Usagestep5.png)

### Adding Material to the Homework ###
Step 1: To add material to the homework first open the homework by clicking on the homework.
![Step 1](readme/Materialstep1.png)

Step 2: After opening the homework click on the 'Open Homework Chooser' button.
![Step 2](readme/Materialstep2.png)

Step 3: Insert the name of the homework and add information regarding the homework.
After inserting the necessary information click on the 'Submit' button.
![Step 3](readme/Materialstep3.png)


## License ##

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Expand Down
Binary file added server/moodle/mod/homework/readme/ER-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 server/moodle/mod/homework/readme/Usagestep1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 server/moodle/mod/homework/readme/Usagestep3.png
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 server/moodle/mod/homework/readme/Usagestep4.png
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 server/moodle/mod/homework/readme/Usagestep5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 205171f

Please sign in to comment.