Web Service for the BINA Collaboration written in Flask microframework.
Attention. Do not use it in a production deployment for security reasons.
-
Prepare python environment
- Create and activate virtual env
$: virtualenv venv
$: source venv/bin/activate
- Install required modules
(venv)$: pip3 install -r requirements.txt
- Set local variables
(venv)$: export FLASK_APP=run.py
- Customize config.py and run.py
- Create and activate virtual env
-
Create database
(venv)S: mkdir database
(venv)$: flask db init
(venv)$: flask db migrate
(venv)$: flask db upgrade
-
Create homepage
mkdir App/static/homepage
- link git repository
-
Run server
(venv)$: python run.py
orflask run -h <host> -p <port>
Temporarily unavailable
The configuration file consists of 2 parts, "server" and "internal". "server" specifies e.g. secret keys, address binds, names, enviroment config. The second part allows you to specify the app structue and layout like header names, options, variables etc.