This is an example LTI quiz with a WHMIS theme.
To install, copy these files to the root directory of your webserver and change the variable $SITE_URL
in whmis.php
to match your server name (if it is on a weird port, use syntax like http://example.com:1234
)
The LTI launch point for the quiz is whmis.php
If you don't want to install PHP, you can use vagrant to run the app in a virtual machine:
-
Install Virtualbox
-
Install Vagrant
-
vagrant up
(this will take a while - e.g. 20 minutes - the first time)
You're done! The application should be running on localhost:55555/whmis.php
You may need to run vagrant provision
if you git pull
any changes to the Vagrant file.
-
Install Docker
-
./build.sh
from the directory containing the Dockerfile
This will expose the app on port 8080:
docker run --name quiz -p 8080:80 -e OAUTH_KEY=key -e OAUTH_SECRET=secret -e SITE_URL=http://localhost:8080 rschick/lti-quiz-sample
Environment vars:
OAUTH_KEY/OAUTH_SECRET: OAuth key/secret shared with LTI tool consumer
SITE_URL: Base URL for the site (no trailing slash)