A replacement for moodle and dualis.
Change inside the eCourse_backend
directory and then run:
python -m venv venv
After the creation of the virtual environment, enter it:
Windows: TODO
Unix: source venv/bin/activate
Before running the project, you need to install the needed dependencies:
pip install -r requirements.txt
Then you need to setup the database
./manage.py migrate
Finally, apply the permissions and groups:
./manage.py loadperms groups.yml
You can run the django project with the built in webserver via:
python eCourse_backend/manage.py runserver
coverage run -p ./frontend_tests/frontend_tests_helper.py
coverage run -p eCourse_backend/manage.py test ./
coverage combine
coverage report
How the tests and coverage are run is shown in the Readme in the folder eCourse_backend.