Setting up the SPA widget

We'll start by setting up the SPA widget. Add the code in the SPA widget from the tarball given below:

ethereum.tar.gz

Once we are done adding the code, select the Docker job which we made earlier. It should look something like this:

Now, we are done with the SPA widget. Let's spin it up by pressing the Run button.

Adding test network to the MetaMask

Our blockchain node and fronted should be up by now. To access our wallet, we need to add our network to the MetaMask. To do so, we need to go to the MetaMask and click on Add Network and add the credentials as explained below.

A form like this will appear with the following entities:

  • Network Name: We can name the network whatever we like
  • New PRC URL: This is the link where our blockchain node can be accessible. The URL is given below:
Press + to interact
{{EDUCATIVE_LIVE_VM_URL}}:3000
  • Chain ID: The chain id can be seen in the ganache CLI but in case of the wrong id, it will guide itself
  • Currency Symbol: We can set whatever currency we like

Once you are done with this form, click on the Save button, and the MetaMask is connected to our network.

Adding wallet to the MetaMask

To add the wallet in the MetaMask, pick any of the private key from the ganache CLI. We are using tmux to run both our frontend and blockchain node. In case you are not familiar with the tmux, here is a quick walkthrough.

Command

Description

Ctrl + b o

Switch window.

Ctrl + b [

Start scroll mode. Use and to scroll and q to quit.

Ctrl + b %

Split window.

Go to the MetaMask and click on the image on the right top corner. Then click on the Import Account button.

Paste the copied private key and we have our wallet mounted to the MetaMask.

Try the Ethereum Wallet

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)