- This application will server as a DNS for content based caching Network
- Allows addition and reading of queries
- run setup.py
sudo bash setup.sh
gunicorn server:app
cd webserver
gunicorn web:app
- 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