AKSharma01 / study_material

Repository from Github https://github.comAKSharma01/study_materialRepository from Github https://github.comAKSharma01/study_material

Online Study Material

N|Study Material

Nodejs version pip Flask Postgres SQLAlchemy psycopg2-binary

Table of content

Install

Pre-requirement python3, pip, virtualenv, postgres

Install The virtualenv & other env

 >>> 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

Configure and Run

 >>> 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

Postman

 >>> set postman env 
 domain : http://localhost:5000
 >>> import link 
 https://www.getpostman.com/collections/b5f49e8ee6fdc7fa80f2

APIs

 >>> 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)

Authors

About


Languages

Language:Python 89.1%Language:HTML 10.9%