| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
👋 Welcome to Python course learning management system. 🐍
The system objectives -
This setup is for debug purposes and will use SQLite database and front-end only.
Steps to do:
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 directoryAfter logging in, use localhost admin to modify entries in the database.
This setup will create the following items:
Steps to do:
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.shIn case you want to add the stub data to PostgreSQL DB, run:
docker exec -it lms_http_1 bash
python lmsdb/bootstrap.pyEnter [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:
# on LMS root directory
flake8 lms. devops/i18n.sh updateThen go to lms/lmsweb/translations to translate the strings, if needed.
export PYTHONPATH=`pwd`
pip install -r requirements.txt
pip install -r dev_requirements.txt
py.test -vvvView contributing guidelines.
| Back | FazBrowse Home | New Git URL |