This Python Flask app provides REST API endpoints for the MAD database.
This system depends on the Centralized Config system, and will use the following configurations:
- rest_services
- servers
The location of the configuration system is in the config.cfg file as CONFIG_ROOT.
After installing on the production server, take the following steps to start the system:
cd /opt/flask/mad-responder
sudo systemctl start gunicorn
sudo systemctl start nginx
-
Create and activate a clean Python 3 environment:
python3 -m venv myenv source myenv/bin/activate
-
Install dependencies:
pip3 install -r requirements.txt
-
Run tests:
python3 test_base.py
-
Start server:
python3 mad_responder.py
-
When you're done, deactivate the virtual environment:
deactivate
Written by Rob Svirskas (svirskasr@janelia.hhmi.org)