Skip to content

mushcatshiro/knowledge-manager

Repository files navigation

Knowledge Manager

project name is inherited from earlier versions which branched out into slightly different/wider scope.

Setup

Bookmarklet

  1. edit bookmarklet.js accordingly
  2. 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

web

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

getting auth token

curl -X POST 'localhost:8080/auth/authenticate' -d '{"auth": "test"}' -H 'Content-Type: application/json

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

Acknowledgements

About

tracking browsing history, notes and blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published