How can we link IPFS and ethereum blockchain together ?

Want to help Sayag with this?
Start private chat

you store any file into IPFS and then you store the IPFS hash in the Ethereum contract. Any user with an IPFS node is going to be able to access the file using that hash. You can store data, images, the front end, etc. whatever you want.
Here you have an example:
Hey Sayag, you can store data required for your app, images, video, etc. on IPFS and store its hash in the the Ethereum DApp. By that Ethereum holds only the current state variable/ hash in the contract. There are a good examples with code on e.g. "A practical guide to cheap IPFS hash storage in an Ethereum smart contract"
check out uport and uport-registry, they're using ipfs for blockchain identity management. You could do something similar to what they're doing