You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hendrik Langer
7dcfd2aaf8
|
6 years ago | |
---|---|---|
officehelper | 6 years ago | |
tests | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE | 6 years ago | |
MANIFEST.in | 6 years ago | |
README.rst | 6 years ago | |
setup.cfg | 6 years ago | |
setup.py | 6 years ago |
README.rst
OfficeHelper
======
Simple Document Management System and Inventory.
.. _tutorial: http://flask.pocoo.org/docs/tutorial/
Install
-------
Install dependencies::
$ apt install python3-venv python3-flask python3-flask-login python3-flask-sqlalchemy
Get officehelper::
# clone the repository
$ git clone https://dev.xd0.de/hendrik/officehelper
$ cd officehelper
Create a virtualenv and activate it::
$ python3 -m venv --system-site-packages venv
$ . venv/bin/activate
Install Flaskr::
$ pip install -e .
Or if you are using the master branch, install Flask from source before
installing Flaskr::
$ pip install -e ../..
$ pip install -e .
Run
---
::
$ export FLASK_APP=officehelper
$ export FLASK_ENV=development
$ flask init-db
$ flask run
Open http://127.0.0.1:5000 in a browser.
Test
----
::
$ pip install '.[test]'
$ pytest
Run with coverage report::
$ coverage run -m pytest
$ coverage report
$ coverage html # open htmlcov/index.html in a browser