A mock up of the interface with Protocol Builder
Go to file
Aaron Louie 07d0c43e8e Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00
config Apparently, APPLICATION_ROOT does something. 2020-05-24 00:05:24 -04:00
migrations Minor cleanup and bug fixes. 2020-02-18 09:25:29 -05:00
pb Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00
templates Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00
tests Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
.gitignore Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00
.travis.yml Builds RRT Docker image. Deploys to RRT instance. 2020-05-13 21:18:10 -04:00
Dockerfile Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00
Pipfile Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00
Pipfile.lock Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00
README.md stuff to automate deployment. 2020-02-17 16:47:34 -05:00
deploy.sh Only creates Docker tag for branch 2020-05-14 08:51:49 -04:00
docker_run.sh Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00
run.py Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
setup.cfg Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
setup.py Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00
wait-for-it.sh Converting to use Postgres rather than SQLLite for database so that data might persist between bounces. 2020-03-23 13:57:19 -04:00
wsgi.py Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00

README.md

Requirements

  • Python 3
  • pip (for python 3)
  • pipenv (just run pip install pipenv)

Running these examples

pipenv run python run.py

This will start a webserver on localhost at port 5001. To see the api, you can visit http://localhost:5001/pb/ui

For future reference, these are the steps Sartography is taking to set up Mock Services:

  1. mdkir project
  2. cd project
  3. pipenv install
  4. pipenv install flask
  5. pipenv install connexion
  6. place your swagger/openapi file in the root directory
  7. add methods to return example data in the app.py file.

Deploying to staging

We don't have a travis / test environment set up for this yet, no tests but you can build and publish it with:

docker image build -t sartography/protocol-builder-mock:latest .
docker push sartography/protocol-builder-mock:latest