Skip to content

Moxie application for browsing and booking academic courses.

Notifications You must be signed in to change notification settings

ox-it/moxie-courses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moxie-courses

Documentation

Display and search courses from an XCRI feed and book them if a provider is able to do so.

Requirements

  • Solr 4
  • pip (easy_install pip)

How to run

Installation

  • python setup.py development

Configuration from moxie (example):

blueprints:
    courses:
        url_prefix: /courses
        factory: moxie_courses.create_blueprint

services:
    courses:
        CourseService: {}
        OAuth1Service:
            oauth_endpoint: 'OAUTH_ENDPOINT'
            client_identifier: 'OAUTH_IDENTIFIER'
            client_secret: 'OAUTH_SECRET'
        SearchService:
            backend_uri: 'solr+http://127.0.0.1:8080/solr/courses'

Running the application

  • celery worker --app moxie.worker
  • python runserver.py (you can also run it with a profiler: python runserver.py --profiler)

Periodically, and the first time, you have to run importers to import data into the search index. You can do this via a Python shell:

>>> from moxie-courses.tasks import import_xcri_ox
>>> import_xcri_ox.delay()

About

Moxie application for browsing and booking academic courses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages