]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/commitdiff
Make use of markdown syntax highlighting.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 22 Jun 2020 18:48:43 +0000 (20:48 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Mon, 22 Jun 2020 18:48:43 +0000 (20:48 +0200)
readme.md

index 0677e90a3d42e353c854d466039366b67d261ac7..f66ccbff448589354831d1fe8a08e1bd75db707c 100644 (file)
--- a/readme.md
+++ b/readme.md
@@ -1,26 +1,53 @@
+# wradmin
+
+Administration web interface for https://www.winterrodeln.org/
+
 This web application uses flask (http://flask.pocoo.org/) and Python 3.
 
-Run the application:
+## Run the application
+
+```{sh}
 $ FLASK_APP=wradmin FLASK_DEBUG=1 FLASK_ENV=development WRADMIN_SETTINGS=development.cfg python3 -m flask run
 $ FLASK_APP=wradmin WRADMIN_SETTINGS=production.cfg python3 -m flask run
+```
 
-Test the application
+## Test the application
+
+```{sh}
 PYTHONPATH=. FLASK_APP=wradmin WRADMIN_SETTINGS=test.cfg python3 -m unittest
+```
+
+
+## Run the shell
 
-Run the shell:
+Normal Python shell:
+
+```{sh}
 $ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg python3 -m flask shell
+```
+
+Ipython shell:
 
-ipython shell:
+```
 $ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg ipython
 >>> import wradmin.model
 >>> wradmin.model.meta.Session.query(wradmin.model.MwUser).get(1)
+```
+
+## Deploy
 
-Deploy:
-Development environmen:
+Development environment:
+
+```
 $ python setup.py bdist_wheel
 $ scp bdist/wradmin-2.1.0.dev0-py3-none-any.whl colleen:
+```
+
 Server environment:
+
+```
 $ bin/wradmin stop
 $ pip uninstall wradmin
 $ pip install wradmin-2.1.0.dev0-py3-none-any.whl # or similar
 $ bin/wradmin start
+```