A lightweight custom REST API for ElasticSearch queries. Once installed, just going to the top-level page will show Swagger documentation.
This system depends on the Centralized Config system, and will use the following configurations:
- rest_services
- servers
- elasticsearch_queries
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/es-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 es_responder.py -
When you're done, deactivate the virtual environment:
deactivate
