Skip to content

Demonstration LTI application: students write and share haiku poems.

License

Notifications You must be signed in to change notification settings

jfederico/lti-demo-haiku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LTI Haiku

Prerequisites

  • python-dev
  • virtualenv

Setting up the development server

  1. Install python dependencies
virtualenv .virtualenv
. .virtualenv/bin/activate
pip install -r requirements/base.txt
  1. Create app/local_settings.py, and set the sensitive settings.
SECRET_KEY = 'SET ME'
LTI_CLIENT_KEY = 'SET ME'
LTI_CLIENT_SECRET = 'SET ME'
PASSWORD_GENERATOR_NONCE = 'SET ME'

# Optional - can use default sqlite for dev
HAIKU_DB_PASSWORD = 'SET ME'
DATABASES = {
  'default': {
      'ENGINE': 'django.db.backends.mysql',
      'NAME': 'lti_haiku',
      'USER': 'lti_haiku',
      'PASSWORD': HAIKU_DB_PASSWORD,
  }
}

You can use the following script to generate secret keys:

#!/usr/bin/env python
import string
from django.utils.crypto import get_random_string
get_random_string(64, string.hexdigits)
  1. Initialize app: install dependencies, database, static files, and create a superuser.
./manage.py migrate
./manage.py createsuperuser
  1. Run server
# Use port 8080 to avoid conflicting with LMS/CMS ports
./manage.py runserver 8080
  1. Run tests, and view coverage report
pip install -r requirements/test.txt
coverage run --source=. manage.py test
coverage report -m

About

Demonstration LTI application: students write and share haiku poems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.1%
  • HTML 7.7%
  • CSS 3.2%