This is a simple Flask site used to test integrations using the TransactID Python Library.
There are two options for running this. You can use docker or you can run a local copy of Flask.
####Dock Instructions Ensure that you have Docker installed.
- run:
docker run --rm --name transactid-python -p 5000:5000 -d netkicorporate/transactid-python:latest
- stop:
docker stop transactid-python
Once this is up and running you can access the endpoints using the base URL of http://localhost:5000/. This URL also has directions on how to use the different endpoints.
####Python Instructions It is highly recommended that you create a virtual environment for this and the steps here will take that into account.
- create a virtual environment using your manager of choice
- activate the environment and run
pip install -r requirements.txt
from within the directory this repos was downloaded to. - export the FLASK_APP variable:
export FLASK_APP=echo.py
- run the built in Flask server:
flask run
Once this is up and running you can access the endpoints using the base URL of http://localhost:5000/. This URL also has directions on how to use the different endpoints.
Included in this repo is a very basic Postman collection that you can import and use for testing.