Table of content
Pre-requirement python3, pip, virtualenv, postgres
>>> pip install virtualenv
>>> virtualenv --version
v16.7.9
>>> brew install Caskroom/cask/wkhtmltopdf
>>> brew install cairo pango
Install latest version of Postgres
>>> brew install postgresql
>>> postgres --version
postgres (PostgreSQL) 12.3
>>> sudo git clone https://github.com/AKSharma01/study_material.git
>>> cd study_material
>>> mv env .env
>>> virtualenv venv -p python3 (create local enviroment)
>>> source venv/bin/activate
>>> pip install -r requirement.txt (to install project dependencies)
>>> python manager.py db init
>>> python manager.py db migrate
>>> python manager.py db upgrade
>>> python server.py
* Serving Flask app "server" (lazy loading)
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 765-751-285
>>> set postman env
domain : http://localhost:5000
>>> import link
https://www.getpostman.com/collections/b5f49e8ee6fdc7fa80f2
>>> solution_api => method["post"] => url[http://localhost:5000/search/v1.0/solution]
(to get list of videos and similar questions)
>>> visited videos => method["post"] => url[http://localhost:5000/search/v1.0/solution/video]
(api that to notify that video has been watched)
- Akash Kumar Sharma (github.com/AKSharma01)