aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPjotr Prins2020-04-10 07:26:33 -0500
committerGitHub2020-04-10 07:26:33 -0500
commitff3007e42b5a8a866de9f6c3e2864854cd8c822f (patch)
tree083edb594b5c50c50203e90890fa7555a542ee91 /README.md
parent643d7592df631fb91d1652134f437c000c1acc06 (diff)
parentd53e1e98b800d7dc5720de0b3c14c94452159315 (diff)
downloadbh20-seq-resource-ff3007e42b5a8a866de9f6c3e2864854cd8c822f.tar.gz
bh20-seq-resource-ff3007e42b5a8a866de9f6c3e2864854cd8c822f.tar.lz
bh20-seq-resource-ff3007e42b5a8a866de9f6c3e2864854cd8c822f.zip
Merge pull request #4 from adamnovak/add-web-ui
Add Web UI
Diffstat (limited to 'README.md')
-rw-r--r--README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1c6f239..8a5a6dd 100644
--- a/README.md
+++ b/README.md
@@ -149,3 +149,32 @@ Here we convert such a pipeline into the Common Workflow Language (CWL) and
sources can be found [here](https://github.com/hpobio-lab/viral-analysis/tree/master/cwl/pangenome-generate).
For more information on building pangenome models, [see this wiki page](https://github.com/virtual-biohackathons/covid-19-bh20/wiki/Pangenome#pangenome-model-from-available-genomes).
+
+# Web Interface
+
+This project comes with a simple web server that lets you use the sequence uploader from a browser. It will work as long as you install the packager with the `web` extra.
+
+To run it locally:
+
+```
+virtualenv --python python3 venv
+. venv/bin/activate
+pip install -e .[web]
+env FLASK_APP=bh20simplewebuploader/main.py flask run
+```
+
+Then visit [http://127.0.0.1:5000/](http://127.0.0.1:5000/).
+
+## Production
+
+For production deployment, you can use [gunicorn](https://flask.palletsprojects.com/en/1.1.x/deploying/wsgi-standalone/#gunicorn):
+
+```
+pip3 install gunicorn
+gunicorn bh20simplewebuploader.main:app
+```
+
+This runs on [http://127.0.0.1:8000/](http://127.0.0.1:8000/) by default, but can be adjusted with various [gunicorn options](http://docs.gunicorn.org/en/latest/run.html#commonly-used-arguments)
+
+
+