https://github.com/realpython/lms
https://github.com/realpython/lms
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/realpython/lms
- Owner: realpython
- Created: 2015-11-06T22:11:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-05T05:32:01.000Z (almost 10 years ago)
- Last Synced: 2025-05-07T21:03:35.515Z (7 months ago)
- Language: Python
- Size: 120 KB
- Stars: 6
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learning Management System
Just a basic LMS... built with brute force
[](https://travis-ci.org/realpython/lms)
## Quick Start
### Basics
1. Activate a virtualenv
1. Install the requirements
### Set Environment Variables
Update *project/config.py*, and then run:
```sh
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"
```
set APP_SETTINGS="\project\server\config\DevelopmentConfig"
or
```sh
$ export APP_SETTINGS="project.server.config.ProductionConfig"
```
### Create DB
```sh
$ 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
```sh
$ python manage.py runserver
```
### Testing
Without coverage:
```sh
$ python manage.py test
```
With coverage:
```sh
$ python manage.py cov
```
### Business Rules
#### Admin
1. Teachers and students can only be added to a course from the add/edit course forms.
#### Courses
1. Students can add themselves to a course, but they cannot remove themselves.
#### Teachers
1. Teachers can create new courses, but they cannot add students.