I made sample dapp application for interacting with smart contract and i developed a basic ui when i am publishing it to ipfs like i did seeing a tutorial and ipfs documentation, i can get only index.html file and supporting scripts and css files are throwing error file not found. can any pls help me out in this issue.
Most probably you're linking to the resources the wrong way. Make sure you're referring to your resources with relative URLs, so instead of doing
<script src="/my-script.js"></script> (absolute link) you do
<script src="./my-script.js"></script> (relative link).
This is because a IPFS website could be loaded in many contexts. Linking to
./my-script.js would work correctly at all times while absolute would work in some but not all.
Development context, you load
/my-script.js (absolute) works alright because your website root is
Gateway context, you load
/my-script.js would not work, as then it tries to load from
http://ipfs.io/my-script.js instead of
http://ipfs.io/ipfs/$yourHash/my-script.js. Relative link fixes that.
Dnslink context, you load
/my-script.js would work correctly, because your website root is
So verify your resource links are actually relative. If they already are, please post your code so we can look into it further.