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

refactor: streamline running on localnet #861

Merged
merged 1 commit into from
Oct 21, 2020
Merged

refactor: streamline running on localnet #861

merged 1 commit into from
Oct 21, 2020

Conversation

chadoh
Copy link
Contributor

@chadoh chadoh commented Sep 1, 2020

The main goal: if you're already running a local NEAR network, make it as easy as possible to run a local contract-helper & Wallet on that network.

Someone in such a situation will very likely be running a different app using Parcel on port 1234, and will need to sign into Wallet using a different port. This switches the local Wallet port to 4000.

There is no need to gitignore .env.local since it stores no sensitive info. Including it makes it much easier to run on a local network with one command:

NODE_ENV=local yarn start

Finally, note that when running a local network with nearup or rainbow-bridge-cli, the only validator account is named node0. Using this as the account creator in contract-helper is the simplest way to get started (see near/near-contract-helper#221), which means the account suffix here needs to match.

I think this is a confusing suffix and would much prefer localnet, but I don't know if that's worth doing now. Ideally such a change would flow out from nearup, rather than being part of the setup in near-contract-helper or here.

@render
Copy link

render bot commented Sep 1, 2020

@render
Copy link

render bot commented Sep 1, 2020

Copy link
Contributor

@mattlockyer mattlockyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave port default?

package.json Outdated Show resolved Hide resolved
The main goal: if you're already running a local NEAR network, make it
as easy as possible to run a local contract-helper & Wallet on that
network.

There is no need to gitignore `.env.local` since it stores no sensitive
info. Including it makes it much easier to run on a local network with
one command:

    NODE_ENV=local yarn start

Also, note that when running a local network with nearup or
rainbow-bridge-cli, the only validator account is named `node0`. Using
this as the account creator in contract-helper is the simplest way to
get started (see near/near-contract-helper#221),
which means the account suffix here needs to match.

I think this is a confusing suffix and would much prefer `localnet`, but
I don't know if that's worth doing now. Ideally such a change would flow
out from `nearup`, rather than being part of the setup in
`near-contract-helper` or here.
@render
Copy link

render bot commented Oct 12, 2020

@chadoh chadoh dismissed mattlockyer’s stale review October 12, 2020 21:10

removed port setting

@chadoh
Copy link
Contributor Author

chadoh commented Oct 13, 2020

@mattlockyer good to merge?

@chadoh chadoh merged commit 81f543c into master Oct 21, 2020
@chadoh chadoh deleted the local branch October 21, 2020 17:45
@mattlockyer mattlockyer restored the local branch October 21, 2020 19:08
@chadoh chadoh deleted the local branch October 21, 2020 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants