git clone https://github.com/fiore/CreativeMarketplace-Chainhack-Hackathon
cd CreativeMarketplace-Chainhack-Hackathon
npm install
# Install Truffle if not installed
npm install -g truffle
# Install Ganache if not installed
https://truffleframework.com/ganache
# Install MetaMask if not installed
https://metamask.io
cd CreativeMarketplace-Chainhack-Hackathon
# Migrate the Smart Contracts
truffle migrate
# If problems
truffle migrate --reset
# Run the server
npm run dev
If you restart Ganache after you have done some transactions, you may have occured in this console error, with a rejected Transaction
Error: Invalid JSON RPC response: {"id":8,"jsonrpc":"2.0","error":{"code":-32603}}
at Object.InvalidResponse (inpage.js:14308)
Error: Invalid JSON RPC response: {"id":9,"jsonrpc":"2.0","error":{"code":-32603}}
at Object.InvalidResponse (inpage.js:14308)
Error: Error: Error: [ethjs-rpc] rpc error with payload {"id":2465245573393,"jsonrpc":"2.0","params":["0xf88...253"],"method":"eth_sendRawTransaction"}
Error: the tx doesn't have the correct nonce. account has nonce of: 0 tx has nonce of: 5
The solution is to reset the MetaMask account
And after run a new migration
cd CreativeMarketplace-Chainhack-Hackathon
truffle migrate --reset
# Run the server
npm run dev