Skip to content

JohnsonChern/Privacy_Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is application of privacy filter on Demo app for Privacy Server.

How to use

#####Setup basic environment

  1. This demo app needs support of postgresql and python site-package requests,flask,psycopg2. If you have pip, simply do

    $ pip install requests flask psycopg2
    
    

    Or simply

    $ pip install -r requirement_app.txt
    
    
  2. Edit config.py to point the app to a server.

Run for static test
  1. Run the original server at localhost with:

    $ python app.py
    
  2. Run modified server at localhost with:

    $ python extended_app.py
    
Run query interaction

You will need local database set by psql to see dynamic interation on how this policy works:

  • Confirm that psycopg2 and postgresql 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 is http://localhost:8000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •