A decentraliced marketplace where you are able to sell and buy items paying with ETH, A user can create multiples stores and create multiples items on them, also there is a balance for each store that the owner of the Store can Withdraw. The project is using IPFS to upload and display images of the items created for every store, there are 12 tests because was needed in the development process.
The address of the contract is hardcoded in the line 27 of App.js and you should update it with yours after migration, this change was made to deploy to Ropsten Network. The truffle-config has the network name 'develop' and it should be 'development' to successfully migrate to the ganache network
It's running at https://finalprojectconsensys.netlify.com/
The Smart Contract is with the ENS:
You can reach the smart contract of this project on Ropsten Network at finalproject.eth the address is 0x3620aC3b36A73D3AF16886C12D561132CED1F3Eb
Was removed due to some problems the implementation is in the history: https://github.com/edsphinx/blockchainmarket/commit/3422ee404f82f657a4e430ee2f7c3cdca8e43631#diff-14b1e33d5bf5649597cdc0e4f684dadd
- The Price of the items/products is in Wei, I misplaced ETH as label but it should be Wei, only integers.
- All field are mandatory and the photo is upload to IPFS and will take some time to respond, please bear with me the waiting.
The contracts with Natspec are in the dev branch: https://github.com/edsphinx/blockchainmarket/tree/dev
- Node 8.16 or above (also install npm)
-
cd path/to/blockchainmarket
(instructions in this document will assume you are at this path) -
npm install
npm install -g ganache-cli
npm install -g truffle
An Ethereum client on 127.0.0.1:7545, will start up a local blockchain for testing.
npm run ganache:start
Communicates with the Ethereum client, allows compiling, migrating, debugging, etc.
truffle console
truffle(development)> compile
truffle(development)> migrate --reset
truffle(development)> test
Compiles, serves, and launches app on http://localhost:3000/. Watches files for changes and reloads app in browser automatically. Make sure you have launched Ganache first.
npm start
Creates a production build of the application for deployment
npm run build
Runs all tests found in the /src tree
npm test
This project was bootstrapped with Create React App.
- Blockchain Market - MIT Licence.