Learning Management System
Just a basic LMS... built with brute force
Quick Start
Basics
- Activate a virtualenv
- Install the requirements
Set Environment Variables
Update project/config.py, and then run:
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"
set APP_SETTINGS="\project\server\config\DevelopmentConfig"
or
$ export APP_SETTINGS="project.server.config.ProductionConfig"
Create DB
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_users
$ python manage.py create_data
Run the Application
$ python manage.py runserver
Testing
Without coverage:
$ python manage.py test
With coverage:
$ python manage.py cov
Business Rules
Admin
- Teachers and students can only be added to a course from the add/edit course forms.
Courses
- Students can add themselves to a course, but they cannot remove themselves.
Teachers
- Teachers can create new courses, but they cannot add students.