contracts-ui icon indicating copy to clipboard operation
contracts-ui copied to clipboard

Provide easy installable via brew, npm, or cargo

Open wottpal opened this issue 1 year ago • 2 comments

Hey there, I love what you've built with contracts-ui!

For new devs and/or terminal maniacs that don't want to rely on the only version or an internet connection for development, it would be awesome to have an easier way to install this thing. And then fire it up via a terminal command which also opens a browser automatically.

As substrate-contracts-node is already installable via cargo it would probably be consistent to have something like substrate-contracts-ui installable similarly. But I'm not sure (due to inexperience with cargo) if javascript/npm projects are possible. I would be fine with a brew or global npm package, too.

Alternatively, it could be a gret idea to bundle this with substrate-contracts-node directly and then allow some kind of substrate-contracts-node --with-ui flag that automatically: starts the node, starts & opens contracts-ui, and preselects the local node. This also has the additional advantage that incompatibility issues (like https://github.com/paritytech/substrate-contracts-node/issues/157#issuecomment-1308495927) are eliminated implicitly by only bundling dependencies that are compatible (and if there is none, a warning can be shown).

wottpal avatar Nov 15 '22 07:11 wottpal