Skip to content
master
Go to file
Code

Latest commit

* feat: Update add comments tags

- Updated the style of the add comments
- Changed the location of the add comments tags
- Made the tags disappear while the mouse not pointing on the line
- Updated the style of the copy button
- Added how many total comments tag near each exercise
- Added a counter of comments near each exercise
- Changed few style parameters values from px to not absolute values

- IMPORTANT: Need to fix the three-quotient-string block - it makes the line numbers not to be fitted to the lines
dc12668

Git stats

Files

Permalink
Failed to load latest commit information.

README.md

Python's Course LMS

Minimized setup for debug (sqlite & FE only)

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 https://127.0.0.1:5000/admin to modify entries in the database.

Full setup

Note: you should have docker + docker-compose installed on your computer

git clone https://github.com/PythonFreeCourse/lms
cd lms
mv 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

./devops/build.sh
./devops/start.sh
./devops/bootstrap.sh
In case you want to add the stub data to postgres 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 https://127.0.0.1:8080/admin to modify entries in the database.

Dev checks to run

  • Run flake8
# on lms root directory
flake8 lms
  • run tests
export PYTHONPATH=`pwd`
pip install -r requirements.txt
pip install -r dev_requirements.txt
py.test -vvv
You can’t perform that action at this time.