This project is made for easier readability of Educative.io courses downloaded using Educative.io_Scraper.
Refer cloudflared tunneling docs to tunnel local servers via cloudflared generated urls or custom domains.
Repo Version : 4.0.9
db.sqlite file is present in {USER_HOME}/EducativeViewer
Delete the db file if updated to 4.0.9 (changes made in db table)
This Viewer is Designed for Educative.io Courses scraped in DARK Mode.
Git
Python 3.9+
OS: Win/Mac(Intel)/Linux(ARM/AMD)
git clone https://github.com/anilabhadatta/educative-viewer.git
cd educative-viewer
pip3 install virtualenv
virtualenv env
env\Scripts\activate
pip install -r requirements.txt
cd ..
set course_dir=<path to course folder>
set FLASK_APP=educative-viewer
set authtoken=<any random keystring>
set downloadtoken=<any random keystring>
source env/bin/activate
pip3 install -r requirements.txt
cd ..
export course_dir=<path to folder>
export FLASK_APP=educative-viewer
export authtoken=<any random keystring>
export downloadtoken=<any random keystring>
flask run --host=0.0.0.0 --port=5000
OR
gunicorn --workers=2 -b 0.0.0.0:5000 'educative-viewer:create_app()' --access-logfile ./educative-viewer/access.log --error-logfile ./educative-viewer/error.log --timeout 120000
local_server_ip: Refers to the local ip in your ethernet/wifi adapter set by your router. eg: 192.168.1.111
> Refer the image below to get the course folder path, eg: "/Users/anilabhadatta/Documents/temp-course"
Activate the Virtual Environment and Install the required modules for the project (Refer Step 2, 3, 4 above).
pip3 install pyinstaller
pyinstaller --clean --add-data templates;templates --add-data static;static --onefile -i"icon.ico" educative-viewer.py
pyinstaller --clean --add-data templates:templates --add-data static:static --onefile -i"icon.ico" educative-viewer.py