My doubts have to do with an implementation where a user fills a form, form data is stored in IPFS. IPFS returns a hash which is stored on Ethereum Blockchain against email ID as primary key (Solidity array). My implementation uses truffle v2 (https://github.com/shivamdawer/ethereum-ipfs-storage), and has web3.js and ipfs.js on client side. My questions are :
- Should web3 be used on client side or on server side? I read somewhere that it was originally meant for server side, but I haven't found any boilerplate for the same.
- Current implementation works successfully on localhost (testrpc port 8545, ipfs ports 5001 & 8080). But on replacing localhost with https://servername.com, I get '
There was an error fetching your accounts.', 'The page was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint. This request has been blocked; the content must be served over HTTPS.
'IPFS XHR Error'. Is this because testrpc and IPFS are meant for HTTP only? How do I address this 3. Somebody suggested that I not use Truffle if i want to go into production mode. Is there a React Webpack boilerplate for Blockchain. If so, please point me in the right direction.