Sample JavaScript platform for building applications with Ethereum Solidity smart contracts.
To run this demo locally, you actually don't need any full Ethereum library, just Node.JS. However you cannot upload smart contracts to a live blockchain
For live deployments get either eth or geth or whatever SDK you prefer.
git clone https://[email protected]/scm/et-si-bc/blockchain-academy-ethereum-platform.git
cd blockchain-academy-ethereum-platform/
npm install
- (Optional)
npm install truffle -g
npm run testrpc
to start a test blockchain instance- First run
npm run compile
, then runnpm run migrate
to deploy the contracts onto your network of choice (default "development"). - Then run
npm run dev
to build the app via webpack and serve it on http://localhost:8080
@TODO use geth or eth
Run npm run <command>
:
- lint: Lint code
- build: Builds application
- dev: Serves application
- serve: Serves application
- testrpc: Runs a test ethereum blockchain
- test: Runs JS and SOL tests
- compile: Compiles SOL smart contracts
- deploy: Deploys smart contracts to blockchain
- Error: Can't resolve '../build/contracts/MetaCoin.json'
This means you haven't compiled or migrated your contracts yet. Run npm run compile
and npm run migrate
first.
Full error:
ERROR in ./app/main.js
Module not found: Error: Can't resolve '../build/contracts/MetaCoin.json' in '/Users/tim/Documents/workspace/Consensys/test3/app'
@ ./app/main.js 11:16-59