I'm building a file sharing solution, which can benefit from the public ledger. I picture, that each file would have its own contract with an owner, and list of Addresses and their permissions on the file.
I'm building this Dapp using Truffle. I have studied the MetaCoin implementation, and while it is a single contract solution; I would like to believe that some applications like mine would require Contracts to be published in runtime. Please correct me if I am wrong.
From what I understand, Truffle compiles contracts and builds them once before the app starts serving. Is there a way to publish contracts on the fly, if Truffle isn't capable of this, what are my options; or am I wrong to dynamically publish contracts?