Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 2.15 KB

README.md

File metadata and controls

53 lines (39 loc) · 2.15 KB

MAD Responder Picture

Build Status GitHub last commit GitHub commit merge status Python 3.7 Requirements Status Coverage

Summary

This Python Flask app provides REST API endpoints for the MAD database.

Configuration

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.

Deployment

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

Development

  1. Create and activate a clean Python 3 environment:

    python3 -m venv myenv
    source myenv/bin/activate
    
  2. Install dependencies:

    pip3 install -r requirements.txt

  3. Run tests:

    python3 test_base.py

  4. Start server:

    python3 mad_responder.py

  5. When you're done, deactivate the virtual environment:

    deactivate

Author Information

Written by Rob Svirskas ([email protected])

Scientific Computing