X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=README.md;fp=README.md;h=1181181cdcd7fa71104bad99afd76cc48741c264;hb=a7b623959e195264ead5cc778aa4653dff75668f;hp=01406efc9962c48c8a6a706577a68ff88081ae4c;hpb=5e20a497d0fd1e068bb038e6e9d468c6104f4e30;p=motion.git diff --git a/README.md b/README.md index 01406ef..1181181 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,24 @@ pip install -r requirements.txt ``` Then edit config.py.example into config.py with your database connection -To debug-run: +To debug-run linux: ``` LANG=C.UTF-8 FLASK_DEBUG=1 FLASK_APP=motion.py flask run ``` +To debug-run windows: +``` +set LANG=C.UTF-8 +set FLASK_DEBUG=1 +set FLASK_APP=motion.py +flask run +``` + +For unit testing use config values from config.py.example: +``` +python -m unittest tests/test_motion.py +``` + The database schema is automatically installed when the table "schema_version" does not exist and the application is started. # Usage