Tutorial for Developing Smart Contract in the NEO Blockchain (ep2) – Building a Private NEO Network on AWS

I recently posted [a tutorial in setting up a dev environment so that the team can collaborate in the development on the NEO blockchain.](https://np.reddit.com/r/CryptoCurrency/comments/adwb3m/tutorial_for_developing_smart_contract_on_the_neo/) This time, I would like to share about how to build a private network on AWS so to test the smart contract. Again, this series of tutorials are written by our CTO, Dominic Fung, to help new comers of the NEO blockchain. We are building a marketing solution, [Nodis.io](https://Nodis.io), on the NEO blockchain. You can see all his articles so far on [his Medium account](https://hackernoon.com/@dominicfung_58781).


Below is a 4 step process to build your private NEO network on AWS. Hopefully this helps and we look forward to feedback from NEO veterans on how we can better improve the process!


**Step 1: Initiating an EC2 instance from AWS**

>Log into your AWS account, click on Services > EC2 > Launch Instance
>Choose the *Amazon Linux 2 AMI*


>Select the t2.micro *(free! if this is your first and only instance)*


>Click *review and launch > launch!* You will then be met with the following popup:


>If this is your first instance, choose *Create a new key pair* from the drop down. Give the new key pair a name > *Download Key Pair*. Launch!


**Step 2:** **Preparing the keypair for SSH**

>If you have not already done so, [download putty here](https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html).
>We need to first transform your .pem file, into something putty can use (.ppk). Go to Windows Start, search *PuTTYgen.*


>Once open, click *Load* > drop down for *All Files (*.*) > Choose myfirstkeypair.pem.*
>Click *Save private key*.
>*Are you sure you want to save this key without a passphrase?* Yes


**Step 3: Find your Public instance’s IP**

>Your instance should be up and running by now! Go back to the AWS console, *Services > EC2.* Click on *Instances,* you should see the following:


>Make note of the **Public DNS (IPv4)** and **IPv4 Public IP.**


**Step 4: SSH time!**

>Start up *PuTTY*. under *Category*, *Connection* > *SSH* > click *Auth.* Browse for the .ppk file you generated through PuTTYgen.


>Next go back to *Session*. Under *Host Name*, put the *Public DNS* of your sever from *step 3*. Under *Saved Sessions*, give your server a name! Click *Save*!


>Click Open! username: **ec2-user**


We will stop here for now. If you’re new to **Amazon Web Services**, it is seriously an industry changing tool that we’ve only scratched the surface of today. Launching a single micro instance falls under “free tier” and shouldn’t cost you a dime! Do be careful: *adding additional infrastructure (EBS volumes, increasing server sizes …) will incur cost!*


***We are looking to launch our token sale on April 6th of this Year. You can see my profile for a link to join our Telegram to learn more about our*** [***Nodis.io***](https://nodis.io/token-sale) ***project!***

The original content came from -> [https://hackernoon.com/building-your-private-neo-network-on-aws-part-1-c01525dadc1c](https://hackernoon.com/building-your-private-neo-network-on-aws-part-1-c01525dadc1c)

View Source

View Reddit by willchen319