/Submit-Testing

This contains two scripts to help with testing submit plugins. One generates manifests and the other serves the files

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Submit-Testing

A server to use to test submit plugins. If you run the Manifest_creation.py file it will generate the correct manifest for testing a submit plugin for any files put in the public folder. If you run the app (using the install instructions below) the app will return files at the urls generated by the Manifest_creation.py script. Note that if running the the server using docker line 10 of Manifest_creation.py must be changed from host_address = "http://localhost:5000/public/" to host_address = "http://localhost:7000/public/".

Install

Using docker

Run docker run --publish 7000:5000 --detach --name submit-testing synbiohub/submit-testing:snapshot Check it is up using localhost:7000.

Using Python

Run pip install -r requirements.txt to install the requirements. Then run FLASK_APP=app python -m flask run. A flask module will run at localhost:5000/.