- Node.js
- Ethereum wallet
- Infura account
- MongoDB Atlas account
- Run
npm install
on the root of the folder - Go to
client
directory and runnpm install
- Go to
blockchain
directory and runnpm install
- Go to
blockchain\secrets
and insert your Infura endpoint as well as your wallet mnemonic - We use Mocha for unit testing, you can use the provided test file in
blockchain\test
folder to unit test the smart contract, or you can make your own test cases - Run
node compile.js
on theblockchain
folder to compile your smart contract, then runnode deploy.js
to deploy your smart contract - Go to
config
folder and insert the required fields ondefaultDummy.json
andproductionDummy.json
, then rename those files todefault.json
andproduction.json
- Go to
client\src
folder, openweb3Dummy.js
and follow the instruction - Go to the root of the folder and run
npm run dev
to run it locally
- Instalar Ganache (Blockchain local) e insertar el RPC server y el mnemonic en web3.js