Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide easy installable via brew, npm, or cargo #373

Open
wottpal opened this issue Nov 15, 2022 · 2 comments
Open

Provide easy installable via brew, npm, or cargo #373

wottpal opened this issue Nov 15, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@wottpal
Copy link

wottpal commented Nov 15, 2022

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 paritytech/substrate-contracts-node#157 (comment)) are eliminated implicitly by only bundling dependencies that are compatible (and if there is none, a warning can be shown).

@wottpal
Copy link
Author

wottpal commented Nov 15, 2022

For completeness, this is my current solution to tackle this: https://github.com/scio-labs/inkathon/blob/28dcecc204da363e7301b590321635ac45ae78ed/packages/contracts/package.json#L11

Unfortunately, with online-versions of Contracts-UI & Polkadot.js explorer only. This makes it not only rely on a stable internet connection during development but is also a tiny bit more error-prone (e.g. on Brave Browser it doesn't work on default even with the most conservative Shields configuration).

@statictype
Copy link
Contributor

thanks @wottpal for submitting this. we definitely have something like this on the roadmap

@statictype statictype added the enhancement New feature or request label Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants