project name is inherited from earlier versions which branched out into slightly different/wider scope.
- edit bookmarklet.js accordingly
- copy bookmarklet.js content to chrome - bookmark manager - add new bookmark - url
pip install -r requirements.txt
cd bookmarklet
export FLASK_APP=bookmarklet.py
flask init
python bookmarklet.py
do refer to config.py to setup .env prior to running the following commands
starting web application locally
cd web
export FLASK_APP=app.py
flask run -p 8080
test
cd web
# to print `print()` statement and run specific tests
pytest --capture=no test\test_crud\test_crud.py
# to run test in quiet mode
pytest -q test\test_crud\test_crud.py
# to run all test
pytest
# show coverage
pytest --cov=blog/app/ --cov-report html test/test_app/test_view.py
pytest -v --cov --cov-config=.coveragerc --cov-report html test/test_integration/
deployment
- bookmarklet is a fork of/heavily inspired by this project and the following post