Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 705 Bytes

README.md

File metadata and controls

38 lines (31 loc) · 705 Bytes

caching hash retrieval server

  • This application will server as a DNS for content based caching Network
  • Allows addition and reading of queries

Setup

  • run setup.py
sudo bash setup.sh

To Run content hash Server

gunicorn server:app

To Run web server

cd webserver
gunicorn web:app

Usage

  • add a new node | format -> add/location_id,content_id,url
curl http://127.0.0.1:5000/add/2,333,google.com
  • read content_id | format -> read/hash/location_id
curl http://127.0.0.1:5000/read/hash/2
  • read url | format -> read/url/content_id
curl http://127.0.0.1:5000/read/url/333