This is from the http://blockchainnyc.io Solidity session I gave on June 19th, 2018 at Rise NYC. I use pure programmatic means to compile and deploy a smart contract to Ethereum Ganache, Rinkeby and mainnet. Uses little to no scaffolding code, zero deployment tools.
- Download and install Node.js 10.x.x http://nodejs.org
- Windows only: npm install -g --production windows-build-tools
- npm install --save truffle-hdwallet-provider
- npm install --save solc
- npm install --save ganache-cli
- npm install --save web3
- npm install --save config
Obtain an access key from Infura http://infura.io
In default.json, insert your 12 word mnemonic and Infura access key
To run:
node app.js