This is application of privacy filter on Demo app for Privacy Server.
#####Setup basic environment
-
This demo app needs support of
postgresql
and python site-packagerequests,flask,psycopg2
. If you havepip
, simply do$ pip install requests flask psycopg2
Or simply
$ pip install -r requirement_app.txt
-
Edit
config.py
to point the app to a server.
-
Run the original server at localhost with:
$ python app.py
-
Run modified server at localhost with:
$ python extended_app.py
You will need local database set by psql to see dynamic interation on how this policy works:
-
Confirm that
psycopg2
andpostgresql
is installed properly -
Please read and modify config_db.py and the run setup_db.py
-
To see query part, goto url
[base index]/doctor
to submit a query action. The default base index ishttp://localhost:8000