1
0
mirror of http://git.k-space.ee/arti/doors.git synced 2024-12-12 15:40:58 +02:00
doors/kdoorweb
2020-10-08 23:11:35 +03:00
..
kdoorweb Add API auth for doors 2020-10-08 23:11:35 +03:00
tests Teach DB to create schema in existing connection 2020-10-08 20:44:56 +03:00
dev-requirements.in Add Web skeleton 2020-09-12 19:44:33 +03:00
dev-requirements.txt Add Web skeleton 2020-09-12 19:44:33 +03:00
MANIFEST.in Add Web skeleton 2020-09-12 19:44:33 +03:00
pyproject.toml Add Web skeleton 2020-09-12 19:44:33 +03:00
README.md Add tests and more docs 2020-10-08 19:47:53 +03:00
requirements.txt Add Web skeleton 2020-09-12 19:44:33 +03:00
setup.py Add Web skeleton 2020-09-12 19:44:33 +03:00

K-Door-web

Development setup

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Initialize database

source venv/bin/activate
curl http://172.21.43.1:5000/user > ad.json
python3 -m kdoorweb initdb

Run dev server

source venv/bin/activate
python -m kdoorweb

Or

bottle.py --debug --reload kdoorweb:application

To set the TCP port number add it as the last argument

python -m kdoorweb 8888

Run unittests

source venv/bin/activate
python -m unittest discover tests

Update requirements.txt

source venv/bin/activate
pip-compile --upgrade setup.py
pip-compile --upgrade dev-requirements.in
# Apply updates to current venv
pip-sync dev-requirements.txt requirements.txt