This project displays the courses available in the selected session alongside the most recent available syllabus.
git clone https://github.com/UBC-LFS/course-directory-flask.git
$ sudo apt-get install apache2 libapache2-mod-wsgi-py3
After that, you need to configure required settings in apache2
export COURSE_DIR_API_URL="URL"
export COURSE_DIR_API_EXP_URL="URL-ACADEMIC"
export COURSE_DIR_CLIENT_ID=""
export COURSE_DIR_CLIENT_SECRET=""
export COURSE_DIR_MODE="prod"
$ sudo apt install python3-venv
$ python3 -m venv venv
$ source venv/bin/activate (Windows: venv\Scripts\activate)
$ pip3 install -r requirements.txt
All the syllabi folders should be stored in the templates/syllabi
folder.
$ python main.py
And then go to http://127.0.0.1:5000/
Thank you.