Proposal. IPFS dynamic website.
1)) We have 2 computers, caller_pc and responder_pc with IPs: caller_ip and responder_ip;
2)) The responder_pc has several files:
QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp34a
QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp34b
QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp34c
3)) The responder_pc has a small database, say sqlite, with 2 columns:
‘picture_jhon_2009.jpg’, QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp34a
‘video_of_mary_2012.mp4’, QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp34b
‘pdf_book_neverland.pdf’, QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp34c
tag: #smalldatabase
4)) Both the caller_pc and responder_pc have a small udp socket.
The UDP socket sends and receives messages via the UDP protocol;
https://nodejs.org/api/dgram.html
https://docs.python.org/3/library/socketserver.html
5))The caller_pc sends to the responder_pc the string ‘picture_jhon_2009.jpg’ over UDP.
Here we assume the caller_pc knows the responder_ip;
6))The responder_pc replies to the caller_pc with the string ‘QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp34a’, over UDP.
Here we assume the responder_pc knows the caller_ip;
7))The caller_pc download the file QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp34a, with ipfs_ipget
8))Dynamicity.
In the #smalldatabase, the user can change the old entry with the new entry:
OLD ENTRY: ‘picture_jhon_2009.jpg’, QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp34a
NEW ENTRY: ‘picture_jhon_2009.jpg’, QmRBkKi1PnthqaBaiZnXML6fH6PNqCFdpcBxGYXoUQfp35d