The goal is a decentralized marketplace on ethereum network. The owner of the contract deployes it to the tesnet/localhost. The owner is automaticly an Admin. The Admins and the owner cann add Sellers. They can add items(name, price,quantity) to be sold. Regular users, can buy these items buy providing the ID of them.
Clone repisotory into desired test directory. Have metamask extension in browser. Have node.js installed .
run these installs in your directory and cd into MarketPlace
Openzeppelin is already in the repository, so no need to install
npm install -g truffle
npm install chai
npm install web3
npm install ganache-cli
ganache-cli -q
truffle test
Should run 5 tests
To start ganache private test run :
in your directory run :
truffle compile
truffle migrate
in client folder run :
npm run
copy the meunomics from the ganache-cli into metamask, to connect
##Myether
Check the deployed_adresses.tx to check functions and addresses
- Truffle React box https://truffleframework.com/boxes/react
- Openzeppelin https://openzeppelin.org/
- Chai https://www.chaijs.com/