1

how do I deploy a in Truffle built, working and migrated Dapp to a webserver so that I could send the link to friends to interact with my smart contract via MetaMask e.g.?

1

Assumed you tested everything on a local webserver, e.g. Apache (in Linux, you can quickly start a tdevelopment instance with php -S 0.0.0.0:8080 and opening localhost:8080in browser. If that works, you can just upload everything on a real webserver.

If you use the truffle webpack boilerplate (truffle unbox webpack) just do npm run build after you migrated the contracts, and upload the contents of the build folder to a webserver.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.