Skip to content

Instantly share code, notes, and snippets.

@val314159
Last active November 22, 2017 18:17
Show Gist options
  • Save val314159/d2695398dc8745fc7ef847917a2f8738 to your computer and use it in GitHub Desktop.
Save val314159/d2695398dc8745fc7ef847917a2f8738 to your computer and use it in GitHub Desktop.
Quickest start to Ethereum development ever! http://b.ccl.io/2017/11/22/quickest-start-to-ethereum/
# From https://gist.github.com/val314159/d2695398dc8745fc7ef847917a2f8738
# See http://b.ccl.io/2017/11/22/quickest-start-to-ethereum/
all:
@echo "# In seperate windows,"
@echo "# Run the following:"
@echo "make testrpc"
@echo "make serve-webpack-dev"
@echo
@echo "# Other good targets: "
@echo
@echo "make testrpc-bg"
@echo "make realclean"
@echo "make compile"
@echo "make migrate--reset"
@echo "make test"
wp:
mkdir wp
cd wp ; truffle unbox webpack
cp truffle.js wp
test:
cd wp ; truffle test
compile: wp
cd wp ; truffle compile
migrate--reset: wp
cd wp ; truffle migrate --reset
build: migrate--reset
cd wp ; npm run build
serve-webpack-dev: build
cd wp ; npm run dev
ACT1=0xc8475626e22753b89ec92fb13172517aa16ca168
ACT2=0xee27e201ac45567ae8682e070fa54cface0f0a53
ACT3=0xceb145a85ee68db5e6325db380c40f2659e503a0
KEY1=27874ac8926066a8ab22cd2085c994844094fde449448a18faf7e04e115e5de2
KEY2=d0bd1fbf356ba9fe837bb9389e7eee5947bdf5f478eaba65602ecb9a962fbde5
KEY3=2cf2c41c5b210bc56180a6539927fe60a0c30cce8fae1e9052a6c9bd6995578c
ARGS=-s 101 -l 50000000 \
--account="0x$(KEY1),672197500000000000000" \
--account="0x$(KEY2),100000000000000000" \
--account="0x$(KEY3),100000000000000000"
testrpc:
testrpc -h 0.0.0.0 -p 9545 $(ARGS)
testrpc-bg:
testrpc -h 0.0.0.0 -p 9545 $(ARGS) 1>>testrpc.LOG 2>>testrpc.ERR &
preinstall:
sudo npm install -g truffle ethereumjs-testrpc
realclean:
rm -fr wp testrpc.??? *~
// Allows us to use ES6 in our migrations and tests.
require('babel-register')
module.exports = {
networks: {
development: {
host: 'localhost',
port: 9545,
network_id: '*' // Match any network id
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment