GitHub - aenglander/practical-api-security-python-example-flask: Code example for Practical API Security for Python based presentations and trainings
This repository consists of client and server code comprising the example material for Practical API Security.
Installing
Pre-Installation Requirements
Clone This Repository
Clone this repository to your computer
git clone https://github.com/aenglander/practical-api-security-python-example-flask.git
Installing Requirements and Virtual Environment
Run a pipenv install:
Start Virtual Environment
Start a pipenv shell:
Verifying the installation
-
Start the server
From Bash:
export FLASK_APP=server.py export FLASK_ENV=development flask run
From Windows:
set FLASK_APP=server.py set FLASK_ENV=development flask run -
Run the client:
-
The client response should be:
REQUEST: === No Request === RESPONSE: Decrypted Body: { "Hello": "World!" }