Setup a DApp in Under 20 (VMWare, geth, Meteor)

SilentCiceroSilentCicero ✭✭✭Toronto, CAMember Posts: 159 ✭✭✭
edited April 2015 in Education
I haven't seen much by way of GEth setup/tutorials so I thought I would quickly write one. This is my usual setup for DApp development, but in tutorial form. You will need a computer with at least 8 GB of RAM. Everything here will be self-contained within the VM.

1. Get Ubuntu 14.10 Desktop ISO & VMWare Player 7+

Download the latest Ubuntu 14.10 x64 ISO, and VMWare Player

2. Setup VMWare Player w/ Ubuntu 14.10

Install VMWare Player, open VMWare, create a new Virtual Machine (CNTRL+N), "Use ISO Image" & select the Ubuntu ISO you downloaded (next), select a basic password (next), choose a VM name (next), set Max to 40GB harddrive (next), "Customize Hardware" settings and make sure you have at least 5GB RAM for your new VM (close), then build the new VM (finish).

3. In the VM, open terminal (CNTRL+ALT+T), Install git, curl, Meteor, geth, setup an account and run geth (let it generate the DAG)
$ sudo apt-get install git
$ sudo apt-get install curl
$ curl https://install.meteor.com/ | sh
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:ethereum/ethereum-qt
$ sudo add-apt-repository ppa:ethereum/ethereum
$ sudo add-apt-repository ppa:ethereum/ethereum-dev
$ sudo apt-get update
$ sudo apt-get install ethereum
$ geth account new // select an easy password for use with geth
$ geth --rpc --rpcaddr="localhost" --mine --unlock=primary --rpcport="8080" --rpccorsdomain="http://localhost:3000" --loglevel=5 --maxpeers=0
4. Open a new terminal, git clone `meteor-dapp-boilerplate` & run it in Meteor
$ git clone https://github.com/SilentCicero/meteor-dapp-boilerplate.git
$ cd meteor-dapp-boilerplate/app
$ meteor
5. Install Chrome, run the DApp

In the VM, open up Ubuntu Software Centre, search "Chromium Web Browser", click install, open up http://localhost:3000 in Chrome and your done!


I hope this helps, see you at the Frontier! All the best, SC.
«1

Comments

Sign In or Register to comment.