GitHub - PythonFreeCourse/lms: LMS allows teachers and educators to easily provide feedback on student programming work - both manually and automatically.
Repository navigation
lmsPublic
About
LMS allows teachers and educators to easily provide feedback on student programming work - both manually and automatically.
Topics
classroom education hacktoberfest lms teachingResources
Readme BSD-3-Clause licenseCode of conduct
Code of conductContributing
Contributing Activity Custom propertiesStars
117 starsWatchers
4 watchingForks
34 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
394 Commits
View commit history for this file.
Folders and files
Repository files navigation
Python's Course LMS
👋 Welcome to Python course learning management system. 🐍
The system objectives -
- Allow teachers and mentors to input exercises list and provide feedback/comments to students exercises solutions.
- Allow students to load their exercises solutions and get feedback to their work.
Creating development environment
Prerequisites
- Linux based system - either WSL on windows or full blown Linux.
- Latest Python version
- Docker
Minimal setup
This setup is for debug purposes and will use SQLite database and front-end only.
Steps to do:
- Clone this repository.
- Set environment variables.
- Run the application.
git clone https://github.com/PythonFreeCourse/lms cd lms export FLASK_DEBUG=1 export LOCAL_SETUP=true export FLASK_APP=lms.lmsweb export PYTHONPATH=`pwd`:$PYTHONPATH cd devops source dev_bootstrap.sh # The initial credentials should appear in your terminal. :) cd .. flask run # Run in root directory
After logging in, use localhost admin to modify entries in the database.
Full setup
This setup will create the following items:
- Application - LMS code.
- Middleware (messaging queue) - RabbitMQ.
- Persistence database - PostgreSQL.
Steps to do:
- Clone this repository.
- Setup using docker & docker-compose.
- Run the application.
git clone https://github.com/PythonFreeCourse/lms cd lms cp lms/lmsweb/config.py.example lms/lmsweb/config.py echo "SECRET_KEY = \"$(python -c 'import os;print(os.urandom(32).hex())')\"" >> lms/lmsweb/config.py cd devops . ./build.sh && . ./start.sh && . ./bootstrap.sh && . ./i18n.sh
In case you want to add the stub data to PostgreSQL DB, run:
docker exec -it lms_http_1 bash python lmsdb/bootstrap.py
Enter [http://127.0.0.1:8080 ], and the initial credentials should appear in your terminal. :)
After logging in, use localhost admin to modify entries in the database.
In case you want to enable the mail system:
- Insert your mail details in the configuration file.
- Change the
DISABLE_MAILline value to False.
Code modification check list
Run Flake8
# on LMS root directory flake8 lms
Updating localization files
. devops/i18n.sh update
Then go to lms/lmsweb/translations to translate the strings, if needed.
Run tests
export PYTHONPATH=`pwd` pip install -r requirements.txt pip install -r dev_requirements.txt py.test -vvv
Contributing
View contributing guidelines .
About
LMS allows teachers and educators to easily provide feedback on student programming work - both manually and automatically.