Ethereum is an open-source, free, decentralized Blockchain with smart contract functionality. It is used to make any secure digital technology. Participants can also use Ethereum tokens to pay for any work done on the blockchain.
Related to Ethereum, there are so many products, but the most famous one is Ethereum Development and Training Suit product. In developing Ethereum Development and Training Suit product, Ganache, Truffle Suite, and MetaMask framework is used.
Ganache: It runs tests, executes commands, and inspects state quickly on your own Ethereum blockchain.
Truffle Suite: For Ethereum developers and testers, Truffle provides a world-class development environment, testing framework, and asset pipeline.
MetaMask: Using this tool, you can run Ethereum dApps in your browser without running a full Ethereum node.
Features
A fast & easy way to get started with Ethereum.
Examine all blocks & transactions to gain insight into what’s happening under the hood.
It is more secure and scalable.
It will take a few minutes for your VM to be deployed. When the deployment is finished, move on to the next section.
Connect to virtual machine
Create an SSH connection with the VM.
bashCopy
ssh azureuser@10.111.12.123
Usage/Deployment Instructions
Step 1: Access the ProductName in Azure Marketplace and click on Get it now button.
Click on Continue and then click on Create.
Step 2: Now to create a virtual machine, enter or select appropriate values for zone, machine type, resource group and so on as per your choice.
Click on Review + create.
Step 3: The below window confirms that VM was deployed.
Step 4: Open port 3389 in security group by going to resource group –
Step 5: Open putty and connect with your machine. Add IP address of the running virtual machine.
Step 6: Login with user name and password that you provided during machine creation.
Step 8: Run below command to check status of ganache-cli is running
$ ganache-cli
Step 7: Go to the truffle project directory by run below command.
$ cd /home/ethereum/myproject
To compile project run command:
$ truffle compile
To Deploy contracts run command:
$ truffle migrate
It should launch transaction on testrpc process output
Create DAPP
To build your frontend, run:
$ truffle build
Launch server for DAPP testing run:
$ truffle serve
Output should display
Go to http://localhost:8080 to see the Dapp
You can send Metacoin to an address (ex: 0x2742c08e81208d01ff48a8c0f7d7c738625f92f5 as see above from testrpc)
Each transactions are displayed on the testrpc process output.
Geth is the command line interface for running a full Ethereum node implemented in Go programming language.
Run this command to see available commands
$ geth –help
You can connect to the VM’s desktop environment from any local windows machine using RDP protocol.
In the “Remote Desktop connection” wizard, copy the public IP address and click connect
This will connect you to the VM’s desktop environment. Provide the username and password that you have created during launching machine to authenticate. Click OK.
Enjoy your Application.
Until now, small developers did not have the capital to acquire massive compute resources and ensure they had the capacity they needed to handle unexpected spikes in load. Amazon EC2 enables any developer to leverage Amazon’s own benefits of massive scale with no up-front investment or performance compromises. Developers are now free to innovate knowing that no matter how successful their businesses become, it will be inexpensive and simple to ensure they have the compute capacity they need to meet their business requirements.
The “Elastic” nature of the service allows developers to instantly scale to meet spikes in traffic or demand. When computing requirements unexpectedly change (up or down), Amazon EC2 can instantly respond, meaning that developers have the ability to control how many resources are in use at any given point in time. In contrast, traditional hosting services generally provide a fixed number of resources for a fixed amount of time, meaning that users have a limited ability to easily respond when their usage is rapidly changing, unpredictable, or is known to experience large peaks at various intervals.
Traditional hosting services generally provide a pre-configured resource for a fixed amount of time and at a predetermined cost. Amazon EC2 differs fundamentally in the flexibility, control and significant cost savings it offers developers, allowing them to treat Amazon EC2 as their own personal data center with the benefit of Amazon.com’s robust infrastructure.
When computing requirements unexpectedly change (up or down), Amazon EC2 can instantly respond, meaning that developers have the ability to control how many resources are in use at any given point in time. In contrast, traditional hosting services generally provide a fixed number of resources for a fixed amount of time, meaning that users have a limited ability to easily respond when their usage is rapidly changing, unpredictable, or is known to experience large peaks at various intervals.
Secondly, many hosting services don’t provide full control over the compute resources being provided. Using Amazon EC2, developers can choose not only to initiate or shut down instances at any time, they can completely customize the configuration of their instances to suit their needs – and change it at any time. Most hosting services cater more towards groups of users with similar system requirements, and so offer limited ability to change these.
Finally, with Amazon EC2 developers enjoy the benefit of paying only for their actual resource consumption – and at very low rates. Most hosting services require users to pay a fixed, up-front fee irrespective of their actual computing power used, and so users risk overbuying resources to compensate for the inability to quickly scale up resources within a short time frame.
No. You do not need an Elastic IP address for all your instances. By default, every instance comes with a private IP address and an internet routable public IP address. The private address is associated exclusively with the instance and is only returned to Amazon EC2 when the instance is stopped or terminated. The public address is associated exclusively with the instance until it is stopped, terminated or replaced with an Elastic IP address. These IP addresses should be adequate for many applications where you do not need a long lived internet routable end point. Compute clusters, web crawling, and backend services are all examples of applications that typically do not require Elastic IP addresses.
You have complete control over the visibility of your systems. The Amazon EC2 security systems allow you to place your running instances into arbitrary groups of your choice. Using the web services interface, you can then specify which groups may communicate with which other groups, and also which IP subnets on the Internet may talk to which groups. This allows you to control access to your instances in our highly dynamic environment. Of course, you should also secure your instance as you would any other server.