Based on a example webpack project with Truffle the team built a landregister and land tenure contracts that are compliance complete by design.
Prabhat Shrestha - tasker.prabhat@gmail.com Sunjay Sharma - sunjoy@yahoo.com Andrew Tran - andrewnamt@gmail.com Hooman Reisi Dehkordi - hreisi@live.com Enrique Klix - enrique.klix@gmail.com Gideon Aschwanden - gideon.aschwanden@gmail.com
- $ testrpc // Start your local Node
- $ ..cd truffle // Go to truffle directory
- $ truffle compile // Compiling the contracts existing in /contracts and defined in /migrations/2_deploy_contracts.js
- $ truffle migrate // Migrate the contracts onto the local Node
- $ npm run dev // Starts your localhost:8080 where you can interact with the contracts
Additionally you can interact with the contracts directly with the terminal. Commands are stored in
- First run
truffle compile
, then runtruffle migrate
to deploy the contracts onto your network of choice (default "development"). - Then run
npm run dev
to build the app and serve it on http://localhost:8080
- Use the webpack hotloader to sense when contracts or javascript have been recompiled and rebuild the application. Contributions welcome!
- Error: Can't resolve '../build/contracts/MetaCoin.json'
This means you haven't compiled or migrated your contracts yet. Run truffle compile
and truffle 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