Created
May 30, 2018 22:48
-
-
Save SalMac86/6f4a60d6a35ff48368629f9850ad2305 to your computer and use it in GitHub Desktop.
Night of Applied Blockchain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Night of Applied Blockchain | |
I. Starting Environment | |
i. Cloud9 Free-Tier | |
ii. node / npm / nvm / python | |
iii. add swap file to instance | |
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 | |
/sbin/mkswap /var/swap.1 | |
chmod 600 /var/swap.1 | |
/sbin/swapon /var/swap.1 | |
nano /etc/fstab | |
/var/swap.1 swap swap defaults 0 0 | |
II. Install Truffle (Truffle Framework http://truffleframework.com/docs/getting_started/project) | |
i. npm install -g truffle | |
ii. npm install -g @angular/cli | |
iii. check for python – python -V | |
iv. truffle unbox Quintor/angular-truffle-box | |
III. Configure | |
i. get public & private IP’s from Cloud9 Console, add Inbound Rule for 8080-8082 | |
ii. update truffle.js to point to private IP and port 8082 | |
iii. update package.json “start” script - “ng serve –host <PrivateIP> --port 8080 | |
IV. Install Development Chain | |
i. npm install -g ganache-cli | |
ii. ganache-cli –h <PrivateIP -p 8082 | |
iii. Make note of Addresses/Keys and Mnemonic | |
V. MetaMask for Chrome | |
i. Connect to Custom RPC - <PublicIP> port 8082 | |
VI. Compile, Migrate, and Serve | |
i. truffle compile | |
ii. truffle migrate | |
iii. npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment