Giter Site home page Giter Site logo

iaamultiplechoice's Introduction

IAAMultipleChoice

Prerequirements

  • Make sure that you have java8, ruby, rubygems and tomcat8 installed!
  • Install CSS-Preprocessor (SASS)
gem install sass
  • Update IntelliJ's H2-Driver! There is a bug in it..
https://groups.google.com/forum/#!topic/h-database/5LZlZ_jC4QI
  • First, download latest drivers, for example from here:
http://repo2.maven.org/maven2/com/h2database/h2/1.4.193/h2-1.4.193.jar
  • Then, in IntelliJ, open your Database view and click on Data Source Properties
  • Under Drivers, select H2
  • Remove the old jar-File and add the downloaded one

Installation

  • Fulfill Prerequirements

IntelliJ Basic Config

  • Enable Annotation Processing
  • Search and install the Lombok Plugin for IntelliJ
  • Restart IntelliJ

Setup Project

  • In IntelliJ, select New -> Project from Version Control -> Github
  • Enter Github Credentials, paste Repository URL:
https://github.com/ferencbeutel/IAAMultipleChoice.git
  • Click through the Project Setup
  • Right-Click pom.xml, select Maven -> Reimport
  • Navigate to File -> Project Structure
  • under Facets, add a web facet
  • If not already there add a Web Application: explored Artifact under Artifacts
  • Add Libraries into the Artifact

Configure Project

  • Copy src/main/resources/spring.properties_template to src/main/resources/spring.properties
  • Replace all placeholders in spring.properties with the correct ones for your setup
  • example config, change datasource url at least:
    • datasource.url=/Users/ferencbeutel/IdeaProjects/IAAMultipleChoice/MultipleChoiceDB
    • smtp.host=smtp.gmail.com
    • smtp.port=587
    • smtp.startTls=true
    • smtp.auth=true
    • smtp.user=[email protected]
    • smtp.password=maxnacken

Sass Compilation

  • run the following code on the command line in the root project
sass --update web/static/:web/static/

Tomcat Setup

  • Navigate to Run -> Edit Configurations
  • Add a new tomcat local server configuration
  • Under Application Server, select your installed Tomcat Root Folder
  • Uncheck the After Launch Option
  • under VM Options, include this if you have an IPv6-Address:
-Djava.net.preferIPv4Stack=true
  • Under the deployment tab, select your Web: exploded facet

Basic usage

data generation

  • your first action after starting the application should be the generation of test data
  • navigate to localhost:8080/application-administration
  • fill in the form and submit the form

Registration

  • select register in the navigation menu
  • fill in the form and follow the instructions in the mail sent to you

Login

  • you can login as a lecturer either with any of the Lecturers found in the User Database Table or with [email protected] and PW genExamplePW
  • you can login as a student with your registered mail, with any of the Students found in the User Database Table or with [email protected] and PW genExamplePW

Lecturer Actions

Seminars

  • you can add Seminars under the add Seminar navigation entry
  • you can edit Seminars by clicking on the Seminar on your home page

Tests

  • once you have created some Seminars, you can create tests for them by clicking on the appropriate button on the home page
  • you can edit them with in the same location after creation
  • once you have created a test, you can start adding questions and answers to it at the edit test page

Student Actions

Seminars

  • you can view all seminars under the seminar list navigation entry
  • to enroll in one, click on it and then hit the enroll button

Tests

  • Once you have enrolled for a Seminar you will get an email at 01:00AM of the start day of the test
    • this is fully configurable in the SeminarScheduler by a cron expression
  • When you got the mail, you can start the test on your home page by clicking on the appropriate button
  • After that, enter your access token and follow the instructions on the screen
  • Once you have finished a test, check your result on the home page

Admin Actions

  • under localhost:8080/application-administration, you can generate initial application data
  • furthermore, you can send the test access token to everyone who is enrolled to a seminar which test starts today

iaamultiplechoice's People

Contributors

mgoll avatar derhennar avatar maxhort avatar

Watchers

James Cloos avatar  avatar Ferenc Beutel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.