Webapp and Mobile app For Crop Sale using Blockchain (Ethereum)
To initialize a project with this run the following commands :- (First Install Truffle and NPM)
-
npm install -g webpack
-
Extract folder in nodemodules.zip to same directory /
-
run testrpc on a new tab To run server on localhost:8545
-
truffle migrate To migrate the code to server running on 8545 port
-
npm run dev To Run our server at localhost:8080
-
Open localhost:8080
-
Buy Tokens
-
Use these Tokens to buy crops from farmers.
-
Farmer Would be Paid from Escrow Once both the side of the deal are done.
- Error: Can't resolve '../build/contracts/xxx.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