Jens Gottwald, Hannes Peterson, Yannick Rump, Tim Brust
This application provides a multiple choice test for seminars of the NORDAKADEMIE. It allows lecturers to create new exams with either a single choice question, a multiple choice question or a gap text.
It's possible to add students to the exam via their e-mail address. The students can login into the web frontend and take the exam. They are not able to repeat it, if they fail.
The system is restricted to NORDAKADEMIE enrolled students and lecturers only.
Technologies used are Hibernate, Spring and Struts2, jQuery (with plugins) and Bootstrap (with plugins).
- Install the following components
- JDK 11
- IDE (e.g. IntelliJ or eclipse)
- Lombok
- Maven 3
- Tomcat v9 (or similar webserver)
- Clone the project
- Create a
user.properties
insrc/main/resources/
- add a correct
database.url
for the H2 database- See below for the default database installation instructions
- Run the project. Visit http://localhost:8080/iaa-multiple-choice
You can enable mail sending by adding the flag mail.disabled=false
to your user.properties
.
You need to configure both mail.username
and mail.password
with valid Gmail credentials or use your own mail server.
This will enable the need to activate the user accounts and mailing of tokens for exams!
Besides that you can force to override the recipient by adding mail.overrideRecipient=your@email
to your user.properties
.
Per default registration of new users is enabled. To disable this set registration.enabled=false
in your user.properties
.
You might want to use the pre-configured database in docs/db/iaa-multiple-choice.h2.db
(credentials are listed below). Make sure to set database.mode
to update
If this does not work, there is an import script located in docs/db/import.sql
. Copy it to src/main/resources
.
To use it while Hibernate starts, add the following property to the spring.xml
(bean id entityManagerFactory):
<prop key="hibernate.hbm2ddl.import_files">import.sql</prop>
can be found under docs/EXAMPLE_CREDENTIALS.md